yat
0.14.5pre
|
Uniform distribution. More...
#include <yat/random/random.h>
Public Types | |
typedef double | result_type |
Public Member Functions | |
double | operator() (void) const |
void | seed (unsigned long s) const |
Set the seed to s. More... | |
unsigned long | seed_from_devurandom (void) |
Set the seed using the /dev/urandom device. More... | |
Protected Attributes | |
RNG * | rng_ |
pointer to GSL random generator | |
Uniform distribution.
Class for generating a random number from a uniform distribution in the range [0,1), i.e. zero is included but not 1.
Distribution function for
Expectation value: 0.5
Variance:
|
inherited |
type returned by operator()
|
virtual |
Implements theplu::yat::random::Continuous.
|
inherited |
Set the seed to s.
Set the seed to s in the underlying rng. If s is zero, a default value from the rng's original implementation is used (cf. GSL documentation).
|
inherited |
Set the seed using the /dev/urandom device.