Randomize Procedure

Initializes the random number generator to a new sequence of random numbers.

Syntax

Randomize ()

Comments

Randomize is required before the calling the Rnd function if a new sequence (seed) of random numbers is needed.

Example

!Create 1000 random numbers and assign to an array ai

Randomize()

for i = 1 to 1000

ai[i] = Rnd()

Next

See Also

Rnd