00001 #ifndef CGENERALRNG_H 00002 #define CGENERALRNG_H 00003 namespace gplib 00004 { 00005 /** \addtogroup gainv Genetic algorithm optimization */ 00006 /* @{ */ 00007 00008 //! The base class for all random number generators, defines the basic interface 00009 class GeneralRNG 00010 { 00011 public: 00012 virtual float GetNumber() = 0; 00013 virtual unsigned int GetNumber(const unsigned int max) = 0; 00014 GeneralRNG(); 00015 virtual ~GeneralRNG(); 00016 }; 00017 /* @} */ 00018 } 00019 #endif // CGENERALRNG_H
1.5.8