SEEDRND

Top  Previous  Next

Syntax

SEEDRND(num as INT)

Description

Seeds the random number generator with a specific value.

Parameters

num - The random seed.

Return value

None

Remarks

On program execution the random number generator seed is set to the current Windows tick count guaranteeing that a repeating random sequence is unlikely to occur. If you use the same seed every time then the random sequence will be identical on successive runs.

See Also: RND, RAND

Example usage

SEEDRND(3433334)