Fix typo
Change function name "random" to its proper name "randomInteger"
This commit is contained in:
parent
4c2ab7343d
commit
743a0dcf90
1 changed files with 3 additions and 3 deletions
|
@ -12,9 +12,9 @@ Any number from the interval `min..max` must appear with the same probability.
|
||||||
Examples of its work:
|
Examples of its work:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
alert( random(1, 5) ); // 1
|
alert( randomInteger(1, 5) ); // 1
|
||||||
alert( random(1, 5) ); // 3
|
alert( randomInteger(1, 5) ); // 3
|
||||||
alert( random(1, 5) ); // 5
|
alert( randomInteger(1, 5) ); // 5
|
||||||
```
|
```
|
||||||
|
|
||||||
You can use the solution of the [previous task](info:task/random-min-max) as the base.
|
You can use the solution of the [previous task](info:task/random-min-max) as the base.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue