Topic: DMD0134

RANDSEED - Random Number Seed


The Random Number Seed (RANDSEED) instruction sets a seed value that will be used by the Generate Random Integer (RANDINT) and Generate Random Real (RANDREAL) instructions.

 

These two pseudo-random number generating instructions will always produce the same sequence of random numbers when initialized with that seed. A good random seed to use is the first scan value of $Now (SDT0).

 

Parameters:

Note: Use the F9 key (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.

 

Seed - can be any 32-bit constant value, or any readable numeric location.


See Also:

 


Related Topics:

 


Rung Example: