#include <Uniform.h>
Inheritance diagram for Uniform::

Public Methods | |
| Uniform (RNG *gen=0, double low=0.0, double high=1.0) | |
| Constructor. | |
| double | low () |
| Returns the lower limit of the r.v. | |
| double | low (double x) |
| Sets the lower limit of the r.v. | |
| double | high () |
| Returns the upper limit of the r.v. | |
| double | high (double x) |
| Sets the upper limit of the r.v. | |
| virtual double | operator() () |
| Operator which generates a random value. | |
Protected Attributes | |
| double | pLow |
| The lower limit of the r.v. | |
| double | pHigh |
| The upper limit of the r.v. | |
| double | delta |
The difference between pHigh and pLow. | |
Adapted from GNU code by Dirk Grunwald.