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