Created
January 30, 2020 07:34
-
-
Save jens1101/9c79fe74681bfc6991ce4d645bed0821 to your computer and use it in GitHub Desktop.
JavaScript create an array of n size and fill it with random numbers
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
const n = 42 | |
const array = [...Array(n)].map(() => Math.random()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment