randomize
Top  Previous  Next

val = randomize ( )

Use this function to initialize the random number generator, used by the rand function. If Randomize is not used, the Rand function will use the same number as a seed the first time it is called.

Parameters
 
None  
 
Example
 
This set of statement will print a unique series of pseudo-random numbers each time you run the script:  
 
randomize(  
For I=0 To 100  
Print rand(100)  
Next