Created
July 6, 2019 10:24
-
-
Save criaturaExperimental/9836cb272a2b6f5ec3ba9cfa987d6900 to your computer and use it in GitHub Desktop.
Generates an array with random numbers in javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| randomArray = (length, max) => [... new Array(length)] | |
| .map(()=> Math.round(Math.random() * max )); | |
| let arr = randomArray(10, 100); | |
| console.log(arr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment