Inheritance diagram for UniformRandomSimple:

This class generates real-valued random numbers uniformly distributed between [0.0, 1.0). This is a replacement for the random number function drand48() from stdlib.h.
Definition at line 235 of file Random.H.
Public Member Functions | |
| UniformRandomSimple (const unsigned long seed=1UL) | |
Generate samples | |
| double | number () |
| Generate a sample from the random variable. | |
Moments of the random variable | |
| double | mean () const |
| double | variance () const |
| double | stdDev () const |
| UniformRandomSimple | ( | const unsigned long | seed = 1UL |
) | [inline] |
| double number | ( | ) | [inline, virtual] |
Generate a sample from the random variable.
This function generates a sample from the random variable represented by the class instance.
Implements RealRandom.
Definition at line 244 of file Random.H.
References MTRand::rand().
| double mean | ( | ) | const [inline, virtual] |
| double variance | ( | ) | const [inline, virtual] |
| double stdDev | ( | ) | const [inline, virtual] |
1.5.1