Update randomIntArrayInRange.md

This commit is contained in:
Angelos Chalaris
2018-01-15 14:00:51 +02:00
committed by GitHub
parent b7fa1767db
commit 04df3cbc23

View File

@ -2,7 +2,7 @@
Returns an array of n random integers in the specified range.
Use `Array.from()` to create an empty array of the specific length. `Math.random()` to generate a random number and map it to the desired range, using `Math.floor()` to make it an integer.
Use `Array.from()` to create an empty array of the specific length, `Math.random()` to generate a random number and map it to the desired range, using `Math.floor()` to make it an integer.
```js
const randomIntArrayInRange = (min, max, n = 1) =>