View Full Version : Random number code help.

12-08-2010, 02: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.

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

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum