Client side development
> Random number code help.
View Full Version :
Random number code help.
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.
12-08-2010, 03:27 AM
var random_number = Math.floor(Math.random()*9)+1
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.