SRND

Action

The SRND function sets the starting point for generating a series of pseudorandom integers. To reinitialize the generator, use 1 as the seed argument. Any other value for seed sets the generator to a random starting point. RND retrieves the pseudorandom numbers that are generated. Calling RND before any call to SRND generates the same sequence as calling SRND with seed passed as 1.

 

Syntax

SRND ( seed )

 

Parameter

Seed

Numeric value to seed the generator with.

Returns

Nothing.

 

Example

SRND( @MSECS )