Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Random.h

Go to the documentation of this file.
00001 #ifndef HEADER_RANDOM_H
00002 #define HEADER_RANDOM_H
00003 
00004 /**
00005  * Utils for random numbers.
00006  */
00007 class Random {
00008     private:
00009         static const int ARRAY_SIZE = 255;
00010         static unsigned char ms_randArray[ARRAY_SIZE];
00011     public:
00012         static void init();
00013 
00014         static int randomInt(int bound);
00015         static double randomReal(double bound);
00016 
00017         static unsigned char aByte(unsigned int index);
00018 };
00019 
00020 #endif

Generated on Wed Jun 1 09:54:31 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2