JavaScript Examples
Randomization
Math.random() method
produce a random number between 0 and 5
produce a random number between 0 and 9
produce a random number between 1 and 10
produce a random number between 5 and 10
display a random image
Return to Examples main menu