• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include <stddef.h>
20 
21 // Return a random number in the given range.
22 unsigned random_number( size_t range );
23 
24 // default base for random container sizes
25 extern unsigned random_base;
26 
27 #endif // #include guard
28