Implementation for integer 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 | |
| UniformRandomInteger () | |
| Default constructor. | |
| UniformRandomInteger (const Number min, const Number max) | |
| Construct from the range of values. | |
| UniformRandomInteger (const Number min, const Number max, const unsigned int n) | |
| Construct from the range of values and a seed. | |
| UniformRandomInteger (const UniformRandomInteger &x) | |
| Copy constructor. | |
| UniformRandomInteger & | operator= (const UniformRandomInteger &other) |
| Assignment operator. | |
| ~UniformRandomInteger () | |
| 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 integer types.
1.6.3