Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript generate random number

let rand = Math.random(); //between (0 <= rand < 1)
let rand2 =  Math.random() * 100; // (0 <= rand2 < 100)
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #generate #random #number
ADD COMMENT
Topic
Name
8+7 =