Implementation for real (floating point) number types. More...
#include <UniformRandom.h>
Public Types | |
typedef T | Number |
The number type. | |
typedef void | argument_type |
Since this is a generator, the argument type is void . | |
typedef Number | result_type |
The result type is the number type. | |
Public Member Functions | |
UniformRandomReal () | |
Default constructor. | |
UniformRandomReal (const Number min, const Number max) | |
Construct from the range of values. | |
UniformRandomReal (const Number min, const Number max, const unsigned int n) | |
Construct from the range of values and a seed. | |
UniformRandomReal (const UniformRandomReal &x) | |
Copy constructor. | |
UniformRandomReal & | operator= (const UniformRandomReal &other) |
Assignment operator. | |
~UniformRandomReal () | |
Destructor. | |
Number | min () const |
Return the lower bound of the interval. | |
Number | max () const |
Return the upper bound of the interval. | |
result_type | operator() () const |
Return a random number in the closed interval [min() .. max()]. |
Implementation for real (floating point) number types.