Generate a random number

Generate a random integer greater than or equal to the LOWER parameter and less than or equal to the UPPER parameter.

'Seed the random number generator
'(You should do this before you use the RND function, preferrably at the
'beginning of your program)

randInt% = INT(RND * (upper - lower + 1)) + lower

GenerateRandomNumber - page last edited 2004-01-19 06:28:28 by (home) (edit)
Blast WIKI - by RoboticBoy - edited and tweaked for our evil purposes by Hexadecimal Disaster