Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to write a program that shows a random number between 1 and 100 in your browser

var randomNum ;
randomNum = Math.ceil(Math.random() * 100);
document.write("Random number between 1 and 100: " + randomNum)
 
PREVIOUS NEXT
Tagged: #write #program #shows #random #number #browser
ADD COMMENT
Topic
Name
8+5 =