Randomize Instruction

Syntax

Randomize [Seed]

Group

Math

Description

Randomize the random number generator.

Parameters

Parameters 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.

Example


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

See also

Rnd( )