#include #include "RNGT.h" using namespace std; RNGT::RNGT(int minValue, int maxValue): theTime {static_cast(time(nullptr))}, seed{ rd.entropy() ? randResult : theTime}, engine {seed}, distribution{minValue, maxValue} { setMinValue = minValue; setMaxValue = maxValue; } RNGT::RNGT(int minValue, int maxValue, int seedValue): seed{ static_cast(seedValue)}, engine {seed}, distribution{minValue, maxValue} { setMinValue = minValue; setMaxValue = maxValue; } int RNGT::operator() (void) { return distribution(engine); } int RNGT::Min() { return setMinValue; } int RNGT::Max() { return setMaxValue; }