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