libstdc++
|
Uniform discrete distribution for random numbers. A discrete random distribution on the range with equal probability throughout the range.
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] |
result_type std::uniform_int_distribution< _IntType >::operator() | ( | _UniformRandomNumberGenerator & | __urng | ) | [inline] |
Generating functions.
Definition at line 1721 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()().
param_type std::uniform_int_distribution< _IntType >::param | ( | ) | const [inline] |
Returns the parameter set of the distribution.
Definition at line 1691 of file random.h.
Referenced by std::uniform_int_distribution< _IntType >::operator()(), std::operator==(), and std::operator>>().
void std::uniform_int_distribution< _IntType >::param | ( | const param_type & | __param | ) | [inline] |
void std::uniform_int_distribution< _IntType >::reset | ( | ) | [inline] |