We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 340c147 + 743a0dc commit 8735adcCopy full SHA for 8735adc
1-js/05-data-types/02-number/9-random-int-min-max/task.md
@@ -12,9 +12,9 @@ Any number from the interval `min..max` must appear with the same probability.
12
Examples of its work:
13
14
```js
15
-alert( random(1, 5) ); // 1
16
-alert( random(1, 5) ); // 3
17
-alert( random(1, 5) ); // 5
+alert( randomInteger(1, 5) ); // 1
+alert( randomInteger(1, 5) ); // 3
+alert( randomInteger(1, 5) ); // 5
18
```
19
20
You can use the solution of the [previous task](info:task/random-min-max) as the base.
0 commit comments