Topic: DMD0134

Help File Version: 2.9.4.37

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) math functions. These two pseudo-random number generating instructions will always produce the same sequence of random numbers when initialized with that seed. A good choice for a random seed is the current UTC Coordinated Universal Time value ($UTC (DST21)).

 

 


Parameters:

Note: Use the F9 key to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.

 

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

 


See Also:

RANDINT - Generate Random Integer

 

RANDREAL - Generate Random Real Number


RANDSEED - Random Number Seed

 


Related Topics:

MATH - Calculate Expression

 


Rung Example: