Uniform discrete distribution for random numbers. A discrete random distribution on the range with equal probability throughout the range.
More...
Uniform discrete distribution for random numbers. A discrete random distribution on the range with equal probability throughout the range.
Definition at line 1497 of file random.h.
typedef _IntType std::uniform_int_distribution< _IntType >::result_type |
std::uniform_int_distribution< _IntType >::uniform_int_distribution | ( | _IntType | __a = 0 , |
|
_IntType | __b = std::numeric_limits<_IntType>::max() | |||
) | [inline, explicit] |
result_type std::uniform_int_distribution< _IntType >::max | ( | ) | const [inline] |
result_type std::uniform_int_distribution< _IntType >::min | ( | ) | const [inline] |
uniform_int_distribution< _IntType >::result_type std::uniform_int_distribution< _IntType >::operator() | ( | _UniformRandomNumberGenerator & | __urng, | |
const param_type & | __p | |||
) | [inline] |
Gets a uniform random number in the range .
This function is aimed at use with std::random_shuffle.
Definition at line 818 of file random.tcc.
result_type std::uniform_int_distribution< _IntType >::operator() | ( | _UniformRandomNumberGenerator & | __urng | ) | [inline] |
Gets a uniformly distributed random number in the range .
Definition at line 1597 of file random.h.
References std::uniform_int_distribution< _IntType >::operator()(), and std::uniform_int_distribution< _IntType >::param().
Referenced by std::uniform_int_distribution< _IntType >::operator()().
void std::uniform_int_distribution< _IntType >::param | ( | const param_type & | __param | ) | [inline] |
param_type std::uniform_int_distribution< _IntType >::param | ( | ) | const [inline] |
Returns the parameter set of the distribution.
Definition at line 1580 of file random.h.
Referenced by std::uniform_int_distribution< _IntType >::operator()(), and std::operator>>().
void std::uniform_int_distribution< _IntType >::reset | ( | ) | [inline] |