home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 1 / LSD Compendium Deluxe 1.iso / a / programming / misc / ada1110b.lha / Examples / Dine / ranspec.ada < prev    next >
Encoding:
Text File  |  1992-03-02  |  414 b   |  15 lines

  1. package RANDOM is
  2.  
  3. -- Simple pseudo-random number generator package.
  4. -- Adapated from the Ada literature by
  5. -- Michael B. Feldman, The George Washington University, November 1990.
  6.  
  7.     procedure SET_SEED(N : POSITIVE);
  8.     function UNIT_RANDOM return FLOAT;
  9.     --returns a float >=0.0 and <1.0
  10.     function RANDOM_INT(N : POSITIVE) return POSITIVE;
  11.     --return a random integer in the range 1..N
  12.  
  13. end RANDOM;
  14.  
  15.