YAPOG  0.0.1
Yet Another Pokemon Online Game
RandomHelper.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_RANDOMHELPER_HPP
2 # define YAPOG_RANDOMHELPER_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
10  {
12 
13  public:
14 
15  static void Init (uint seed);
16 
17  static int GetNext (const int& min, const int& max);
18  static float GetNext (const float& min, const float& max);
19  static double GetNext (const double& min, const double& max);
20  static bool Percentage (const float& percentage);
21 
22  private:
23 
24  static int GetNext ();
25 
26  RandomHelper ();
27  ~RandomHelper ();
28  };
29 } // namespace yap
30 
31 #endif // YAPOG_RANDOMHELPER_HPP