00001 /*********************************************************************************** 00002 random_number.h 00003 00004 * Copyright (c) 1997-1998 00005 * Mark of the Unicorn, Inc. 00006 * 00007 * Permission to use, copy, modify, distribute and sell this software 00008 * and its documentation for any purpose is hereby granted without fee, 00009 * provided that the above copyright notice appear in all copies and 00010 * that both that copyright notice and this permission notice appear 00011 * in supporting documentation. Mark of the Unicorn makes no 00012 * representations about the suitability of this software for any 00013 * purpose. It is provided "as is" without express or implied warranty. 00014 00015 ***********************************************************************************/ 00016 #ifndef RANDOM_NUMBER_DWA120298_H_ 00017 #define RANDOM_NUMBER_DWA120298_H_ 00018 00019 // Return a random number in the given range. 00020 unsigned random_number( unsigned range ); 00021 00022 // default base for random container sizes 00023 extern unsigned random_base; 00024 00025 #endif // #include guard