#include "generator.hpp" RandomNumberGenerator::RandomNumberGenerator(const unsigned int &seed) { this->_generator = std::make_unique(seed); } unsigned int RandomNumberGenerator::in_range(const unsigned int &a, const unsigned int &b) const { auto random_distribution = std::uniform_int_distribution(a, b); return random_distribution(*this->_generator); }