Developer Documentation Library > UNICOM Intelligence Function Library > Random number functions > GetRandomSeed
 
GetRandomSeed
Returns a value representing the current starting point of the random number generator for the Rnd, RanInt, and Ran functions.
Syntax
GetRandomSeed()
Parameters
(return)
Type: Long
Current starting point for random number generation.
Notes
The current starting point for the random number generator is stored by the mrScriptBasic engine and Evaluate component and passed to the Ran, RanInt, and Rnd functions as hidden parameters.
Example
Dim seed
seed = GetRandomSeed()
See also
RanInt
Random number functions