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