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