Randomize statement
Randomize[number]
Initializes the random number generator.
The Randomize statement has one optional parameter number. This parameter can be any valid number and is used to initialize the random number generator. If you omit the parameter then the value returned by the Timer function is used as the default parameter to seed the random number generator.
Example
Sub Main
   Dim MValue
 
   Randomize   ' Initialize random-number generator.
   MValue = Int((6 * Rnd) + 1)  
   Print MValue 
End Sub