Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript generate 3 numbers 1 - 49

var arr = [];
while(arr.length < 8){
    var r = Math.floor(Math.random() * 100) + 1;
    if(arr.indexOf(r) === -1) arr.push(r);
}
console.log(arr);
 
PREVIOUS NEXT
Tagged: #javascript #generate #numbers
ADD COMMENT
Topic
Name
9+2 =