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 devimalplanet.com #
 
PREVIOUS NEXT
Tagged: #javascript #random #number #generator
ADD COMMENT
Topic
Name
6+3 =