// // Created by SeanOMik on 7/6/2020. // Github: https://github.com/SeanOMik // Email: seanomik@gmail.com // #ifndef SIMPLEENGINE_RANDOM_H #define SIMPLEENGINE_RANDOM_H #include #include namespace simpleengine { template class Random { private: RandomDevice rd; Generator gen; public: Random() { this->gen = Generator(rd()); } template> T NextInRange(T min, T max) { Dist dist(min, max); return dist(gen); } }; } #endif //SIMPLEENGINE_RANDOM_H