rnd()

Returns pseudo-random number.

Syntax:
variable = rnd( { number } )

Random number range between 1 and
number .
If number is not given, the maximum value may be returned is 999999999

Example:
while not key(27) ' loops until ESC key is pressed
print rnd( 100 )
wend

see also randomize() command