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) 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
|
|
Parameters:Note: Use the F9 key or click the 'three dot box' at the right edge of the parameter field 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:
|
|
Rung Example:
|
|