|
0.12.0
|
|
Freundlich's C++ toolkit |
A wrapper around pseudo random number generators.
Wraps a pseudo random number generator. This class is not copyable, although pseudo random number generators are. However, copying them is discouraged. Also, this class uses a strong typedef for the seed and doesn't allow any default value for it.
| Generator | Must be a pseudo random number generator |
Public Types | |
| typedef wrapped::result_type | result_type |
| The result type used for drawing random numbers. | |
| typedef result_type | seed |
Public Member Functions | |
| basic_pseudo (seed _seed) | |
| Constructs the generator using a seed. | |
| ~basic_pseudo () | |
| Destroys the generator. | |
| result_type | operator() () |
| Draws a random number. | |
| result_type | min () const |
| Returns the minimum element of all the possible random numbers. | |
| result_type | max () const |
| Returns the maximum element of all the possible random numbers. | |
| typedef wrapped::result_type fcppt::random::generator::basic_pseudo< Generator >::result_type |
The result type used for drawing random numbers.
| typedef result_type fcppt::random::generator::basic_pseudo< Generator >::seed |
|
inlineexplicit |
Constructs the generator using a seed.
Constructs the generator using _seed
| _seed | The seed to use |
|
inline |
Destroys the generator.
|
inline |
Returns the maximum element of all the possible random numbers.
|
inline |
Returns the minimum element of all the possible random numbers.
|
inline |
Draws a random number.
1.8.2