Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Random.hpp
Go to the documentation of this file.
1 #pragma once
2 #include "Engine/api.hpp"
3 
4 namespace Engine
5 {
10  {
11  public:
12 
19  int const& GenerateInt(int const& min, int const& max);
20 
27  float const& GenerateFloat(float const& min, float const& max);
28 
29  private:
30  friend class Engine;
34  Random();
35  public:
36  ~Random() = default;
37  private:
38 
39  int lastResultInt;
40  float lastResultFloat;
41  };
42 } //namespace Engine
43 
#define ENGINE_API
Definition: api.hpp:25
This class provides random nummber generation of ints and floats withing the passed boundaries ...
Definition: Random.hpp:9