/* []----------------------------------------[] | Rand.h | []----------------------------------------[] | | | AUTHOR: MFSomers 2005. | | USE: A basic random number | | generator (rand POSIX | | 1003.1-2003)... | | | []----------------------------------------[] */ // Copyright (C) 2005 M.F. Somers, Theoretical Chemistry Department, Leiden University // // This is free software; you can redistribute it and/or modify it under the terms of // the GNU Lesser General Public License as published by the Free Software Foundation. // // http://www.gnu.org/licenses/lgpl.txt #if !defined(__RAND_INCLUDED__) #define __RAND_INCLUDED__ /* ---------------------------------------------------------------------------- */ extern unsigned long Rand_State; /* ---------------------------------------------------------------------------- */ int Rand( unsigned long& State = Rand_State ); unsigned long GRand( unsigned long& State = Rand_State ); void SRand( unsigned long Seed, unsigned long& State = Rand_State ); /* ---------------------------------------------------------------------------- */ #endif