Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Random number code help.
12-08-2010, 02:20 AM #1
- Join Date
- Dec 2010
- Thanked 0 Times in 0 Posts
Random number code help.
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 #2
var random_number = Math.floor(Math.random()*9)+1
Users who have thanked jmrker for this post: