Darwin Help

Back to Index

SetRandSeed

Function SetRandSeed


Calling Sequence  SetRandSeed()
Return Type  NULL
Synopsis Initialize the random number generator to produce a sequence depending on the date, time and process id. This is normally a guarantee that different processes end up with different random seeds. If printlevel is 3 or higher, SetRandSeed will print the value that it has used for SetRand() so that the same random sequence can be regenerated.
Examples
> SetRandSeed();

> Rand();
0.2029
See also CreateRandSeq,   Rand,   SetRand,   Shuffle