Randomize Instruction

Syntax

Randomize [Seed]

Group

Math

Description

Randomize the random number generator.

Parameter Description
Seed This numeric value sets the initial seed for the random number generator. If this value is omitted then the current time is used as the seed.

See Also: Rnd( ).

Example

Sub Main
Randomize
Debug
.Print Rnd ' 0.??????????????
End
Sub