Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

random number generator javascript

Math.floor(Math.random() * (max - min + 1)) + min;
//max is the highest number you want it to get
//min is the lowest number you want it to get
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #random #number #generator #javascript
ADD COMMENT
Topic
Name
5+5 =