// // 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 #include namespace simpleengine { template class Random { private: RandomDevice rd; Generator gen; public: Random() { this->gen = Generator(rd()); } template || std::is_same_v, std::uniform_int_distribution, std::uniform_real_distribution>> T NextInRange(T min, T max) { Dist dist(min, max); return dist(gen); } }; } #endif //SIMPLEENGINE_RANDOM_H