GPLIB++
GeneralRNG.h
Go to the documentation of this file.
1 #ifndef CGENERALRNG_H
2 #define CGENERALRNG_H
3 namespace gplib
4  {
5  /** \addtogroup gainv Genetic algorithm optimization */
6  /* @{ */
7 
8  //! The base class for all random number generators, defines the basic interface
9  class GeneralRNG
10  {
11  public:
12  virtual float GetNumber() = 0;
13  virtual unsigned int GetNumber(const unsigned int max) = 0;
14  GeneralRNG();
15  virtual ~GeneralRNG();
16  };
17  /* @} */
18  }
19 #endif // CGENERALRNG_H
virtual ~GeneralRNG()
Definition: GeneralRNG.cpp:8
virtual float GetNumber()=0
The base class for all random number generators, defines the basic interface.
Definition: GeneralRNG.h:9