home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stl453up.zip / stl453fx / test / eh / random_number.h < prev    next >
C/C++ Source or Header  |  2002-04-29  |  990b  |  26 lines

  1. /***********************************************************************************
  2.     random_number.h
  3.     
  4.  * Copyright (c) 1997-1998
  5.  * Mark of the Unicorn, Inc.
  6.  *
  7.  * Permission to use, copy, modify, distribute and sell this software
  8.  * and its documentation for any purpose is hereby granted without fee,
  9.  * provided that the above copyright notice appear in all copies and
  10.  * that both that copyright notice and this permission notice appear
  11.  * in supporting documentation.  Mark of the Unicorn makes no
  12.  * representations about the suitability of this software for any
  13.  * purpose.  It is provided "as is" without express or implied warranty.
  14.         
  15. ***********************************************************************************/
  16. #ifndef RANDOM_NUMBER_DWA120298_H_
  17. #define RANDOM_NUMBER_DWA120298_H_
  18.  
  19. // Return a random number in the given range.
  20. unsigned random_number( unsigned range );
  21.  
  22. // default base for random container sizes
  23. extern unsigned random_base;
  24.  
  25. #endif // #include guard
  26.