...

View Full Version : Random number code help.



Lilo17x
12-08-2010, 03:20 AM
I need help with a code that will generate a random number or integer (from 1-9). Does anybody know of a short random generator without having to import anything? thank you.

jmrker
12-08-2010, 03:27 AM
var random_number = Math.floor(Math.random()*9)+1



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum