Liberty BASIC Help Online |
RANDOMIZE
RANDOMIZE n
Description:
This function seeds the random number generator in a predictable way. The seed numbers must be greater than 0 and less than 1. Numbers such as 0.01 and 0.95 are used with RANDOMIZE.
Usage:
'this will always produce the same 10 numbers
randomize 0.5
for x = 1 to 10
print int(rnd(1)*100)
next x
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/