![]() |
QMCPACK
|
generating real type random numbers [min, max) in a uniform distribution. More...
Public Types | |
using | result_type = T |
Public Member Functions | |
uniform_real_distribution_as_boost (T min=T(0.0), T max=T(1.0)) | |
template<typename RNG > | |
result_type | operator() (RNG &eng) |
Generating functions. More... | |
Private Attributes | |
T | min_ |
T | max_ |
generating real type random numbers [min, max) in a uniform distribution.
This is intended to match the behavior of random::uniform_real_distribution in the boost libraries Its behavor is different from std::uniform_real_distribution which uses std::generate_canonical to generate enough entropy according to the precision of T.
Definition at line 34 of file StdRandom.h.
using result_type = T |
Definition at line 37 of file StdRandom.h.
|
inline |
Definition at line 40 of file StdRandom.h.
|
inline |
Generating functions.
Definition at line 43 of file StdRandom.h.
|
private |
Definition at line 51 of file StdRandom.h.
Referenced by uniform_real_distribution_as_boost< RngValueType< T > >::operator()().
|
private |
Definition at line 50 of file StdRandom.h.
Referenced by uniform_real_distribution_as_boost< RngValueType< T > >::operator()().