RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.RandSeed Variable

RandSeed stores the built-in random number generator's seed.

Pascal
RandSeed: Longint = 0;
C++
Longint RandSeed = 0;

By assigning a specific value to RandSeed, you can use the Random function to repetitively generate a specific sequence of random numbers. This is useful for applications that deal with data statistics and simulations. For applications that deal with encryption see the note under the Random function. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!