33 #ifndef EMANEUTILSRANDOMNUMBERDISTRIBUTION_HEADER_ 34 #define EMANEUTILSRANDOMNUMBERDISTRIBUTION_HEADER_ 48 template<
class Generator,
class Distribution>
60 typename Distribution::result_type max,
61 unsigned seed = std::chrono::system_clock::now().time_since_epoch().count()) :
63 distribution_{min, max}
73 return distribution_(generator_);
78 Distribution distribution_;
83 #endif // EMANEUTILSRANDOMNUMBERDISTRIBUTION_HEADER_ Distribution::result_type operator()()
RandomNumberDistribution(typename Distribution::result_type min, typename Distribution::result_type max, unsigned seed=std::chrono::system_clock::now().time_since_epoch().count())
A utility wrapper around a generator and a distribution.