Thread: Random?
View Single Post
  #2  
Old 03-02-2011, 05:14 AM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
random(lownumber,highnumber);
combined with int(val);

To get a random int between 0 and 5, for example:
int(random(0,5.9999));

I suggest putting the 9's there for any of the integer-related random numbers, otherwise the chances of the high number showing up are slim to none.
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote