qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
RandSeed
  System Unit Contents Index                                Back
 
  CONST
      RandSeed : LongInt = 0;    { seed for random number generator }
 
  Unit:     System (used automatically)
 
  Context:  Random, Randomize
 
  Description
 
    RandSeed holds the current seed used by the Random function, a
    pseudorandom-number generator.
 
    Assign a known value to RandSeed to generate a predictable series
    of numbers.
 
    Start the series with an unpredictable number by calling the
    Randomize procedure. Randomize sets RandSeed to an unpredictable
    number taken from the system time.