Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get random numbers javascript

//Write the following code to get a random number between 0 and n
Math.floor(Math.random() * n);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #random #numbers #javascript
ADD COMMENT
Topic
Name
4+8 =