Category
Settings
Description
Permits use of the same sequence of pseudorandom numbers every time a script is run
Notes
Pseudorandom numbers can be used explicitly by scripts via the Random function and are used implicitly in Optimization (some modes) and MonteCarlo analysis.
If RandomSeed is not specfied or is 0 then random numbers are different every time RealTest runs and are selected from a much larger set of possible values (the C runtime library function rand_s is used).
When RandomSeed is specified, the provided value is passed to the C srand function and the rand function is then used for each random value needed.
It is recommended to not specify a RandomSeed unless you have a particular need for it, as the rand_s function is significantly more robust than rand is.
