Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

generate an array of random numbers javascript

let numbersArray = [] , max = 100;

for( var i=1; numbersArray.push(i++) < max;);  // numbers = [1,2,3 ... 100] 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generate #array #random #numbers #javascript
ADD COMMENT
Topic
Name
7+9 =