#include "randomization.hpp" RandomNumberGenerator::RandomNumberGenerator(const 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(const unsigned int &a, const unsigned int &b) const { auto random_distribution = std::uniform_int_distribution(a, b); return random_distribution(*this->_generator); }