TIL a easy way to generate a lot of fake numbers
POSTED ON:
TAGS: javascript arrays
You need lots of array elements. You got it.
Array.from({ length: 1000 }, Math.random);
// [ 0.6163093133259432, 0.8877401276499153, 0.4094354756035987, ...] - 1000 items
Via 11 JavaScript Tips and Tricks to Code Like A Superhero (Vol.2)
Related TILs
Tagged: javascript