Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

generating random number in javascript

/*
To generate a random number between a and b keep in mind this formula:
a-> minimum value 
b->maximum value */
let randomNumber = a+(b-a)*Math.random();
/*this gives you any random number between a and b
*/
Source by devimalplanet.com #
 
PREVIOUS NEXT
Tagged: #generating #random #number #javascript
ADD COMMENT
Topic
Name
7+1 =