EMANE
1.2.1
|
A utility wrapper around a generator and a distribution. More...
#include <randomnumberdistribution.h>
Public Member Functions | |
RandomNumberDistribution (typename Distribution::result_type min, typename Distribution::result_type max, unsigned seed=std::chrono::system_clock::now().time_since_epoch().count()) | |
Distribution::result_type | operator() () |
A utility wrapper around a generator and a distribution.
Definition at line 49 of file randomnumberdistribution.h.
|
inline |
Creates a RandomNumberDistribution instance
min | Minimum value in distribution |
max | Maximum value in distribution |
seed | Generator seed |
Definition at line 59 of file randomnumberdistribution.h.
|
inline |
Generates a random number
Definition at line 71 of file randomnumberdistribution.h.