CRandomNumber.h
Go to the documentation of this file.
1 #ifndef istd_CRandomNumber_included
2 #define istd_CRandomNumber_included
3 
4 
5 namespace istd
6 {
7 
8 
13 {
14 public:
15  CRandomNumber();
16 
20  int GetNextInt(int minValue, int maxValue) const;
21 
25  double GetNextDouble(double minValue, double maxValue) const;
26 
27 protected:
28  double GetNextUnitary() const;
29 };
30 
31 
32 } // namespace istd
33 
34 
35 #endif // !istd_CRandomNumber_included
36 
37 
double GetNextUnitary() const
double GetNextDouble(double minValue, double maxValue) const
Get new random real value in the given range.
Helper class for calculation of a random number.
Definition: CRandomNumber.h:12
int GetNextInt(int minValue, int maxValue) const
Get new random integer value in the given range.

© 2007-2017 Witold Gantzke and Kirill Lepskiy