Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: math,random,intermediate
|
||||
|
||||
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) =>
|
||||
|
||||
Reference in New Issue
Block a user