Change function name "random" to its proper name "randomInteger"
This commit is contained in:
Hans Yelek 2019-04-24 23:06:16 -06:00 committed by GitHub
parent 4c2ab7343d
commit 743a0dcf90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,9 +12,9 @@ Any number from the interval `min..max` must appear with the same probability.
Examples of its work:
```js
alert( random(1, 5) ); // 1
alert( random(1, 5) ); // 3
alert( random(1, 5) ); // 5
alert( randomInteger(1, 5) ); // 1
alert( randomInteger(1, 5) ); // 3
alert( randomInteger(1, 5) ); // 5
```
You can use the solution of the [previous task](info:task/random-min-max) as the base.