Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript random number generator

var random = Math.floor (Math.random() * 10) + 1;
//This generates a number between 10 and 1
example.children[random].innerHTML = random;
//This displays the number on screen
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #random #number #generator
ADD COMMENT
Topic
Name
3+5 =