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 UTC (Coordinated Universal Time) is the primary time standard by which the world regulates clocks and time. Time zones around the world are expressed as positive or negative offsets from UTC, as in the list of time zones by UTC offset. UTC is used in many Internet and World Wide Web standards. The Network Time Protocol, designed to synchronise the clocks of computers over the Internet, encodes times using the UTC system. value ($UTC (DST21)).
|
|
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:
|
|