Skip to content

Commit 743a0dc

Browse files
authored
Fix typo
Change function name "random" to its proper name "randomInteger"
1 parent 4c2ab73 commit 743a0dc

File tree

1 file changed

+3
-3
lines changed
  • 1-js/05-data-types/02-number/9-random-int-min-max

1 file changed

+3
-3
lines changed

1-js/05-data-types/02-number/9-random-int-min-max/task.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Any number from the interval `min..max` must appear with the same probability.
1212
Examples of its work:
1313

1414
```js
15-
alert( random(1, 5) ); // 1
16-
alert( random(1, 5) ); // 3
17-
alert( random(1, 5) ); // 5
15+
alert( randomInteger(1, 5) ); // 1
16+
alert( randomInteger(1, 5) ); // 3
17+
alert( randomInteger(1, 5) ); // 5
1818
```
1919

2020
You can use the solution of the [previous task](info:task/random-min-max) as the base.

0 commit comments

Comments
 (0)