|
0.12.0
|
|
Freundlich's C++ toolkit |
A wrapper around a uniform int distribution.
Wraps a uniform int distribution, removing the default parameters of the constructor and also using strong typedefs.
| IntType | Must be an integer type |
Public Types | |
| typedef IntType | int_type |
| The int type used. | |
| typedef wrapped::result_type | result_type |
| The result returned by drawing random numbers. | |
| typedef int_type | min |
| typedef int_type | max |
Public Member Functions | |
| FCPPT_STATIC_ASSERT_STATEMENT (boost::is_integral< int_type >::value) | |
| uniform_int (min _min, max _max) | |
| Constructs a uniform int distribution. | |
Public Attributes | |
| FCPPT_RANDOM_DISTRIBUTION_DECLARE_CALL | |
| typedef IntType fcppt::random::distribution::uniform_int< IntType >::int_type |
The int type used.
| typedef int_type fcppt::random::distribution::uniform_int< IntType >::max |
| typedef int_type fcppt::random::distribution::uniform_int< IntType >::min |
| typedef wrapped::result_type fcppt::random::distribution::uniform_int< IntType >::result_type |
The result returned by drawing random numbers.
| fcppt::random::distribution::uniform_int< IntType >::uniform_int | ( | min | _min, |
| max | _max | ||
| ) |
Constructs a uniform int distribution.
Constructs the uniform int distribution from _min and _max.
| _min | The minimum value this distribution can produce |
| _max | The maximum value this distribution can produce |
| fcppt::random::distribution::uniform_int< IntType >::FCPPT_STATIC_ASSERT_STATEMENT | ( | boost::is_integral< int_type >::value | ) |
| fcppt::random::distribution::uniform_int< IntType >::FCPPT_RANDOM_DISTRIBUTION_DECLARE_CALL |
1.8.2