Definition at line 1515 of file random.
typedef _IntType std::tr1::uniform_int< _IntType >::input_type |
typedef _IntType std::tr1::uniform_int< _IntType >::result_type |
std::tr1::uniform_int< _IntType >::uniform_int | ( | _IntType | __min = 0 , |
|
_IntType | __max = 9 | |||
) | [inline, explicit] |
Constructs a uniform distribution object.
Definition at line 1530 of file random.
References _GLIBCXX_DEBUG_ASSERT.
result_type std::tr1::uniform_int< _IntType >::max | ( | ) | const [inline] |
result_type std::tr1::uniform_int< _IntType >::min | ( | ) | const [inline] |
result_type std::tr1::uniform_int< _IntType >::operator() | ( | _UniformRandomNumberGenerator & | __urng, | |
result_type | __n | |||
) | [inline] |
Gets a uniform random number in the range .
This function is aimed at use with std::random_shuffle.
result_type std::tr1::uniform_int< _IntType >::operator() | ( | _UniformRandomNumberGenerator & | __urng | ) | [inline] |
void std::tr1::uniform_int< _IntType >::reset | ( | ) | [inline] |
std::basic_ostream<_CharT, _Traits>& operator<< | ( | std::basic_ostream< _CharT, _Traits > & | __os, | |
const uniform_int< _IntType1 > & | __x | |||
) | [friend] |
Inserts a uniform_int random number distribution __x
into the output stream os
.
__os | An output stream. | |
__x | A uniform_int random number distribution. |
__x
inserted or in an error state. std::basic_istream<_CharT, _Traits>& operator>> | ( | std::basic_istream< _CharT, _Traits > & | __is, | |
uniform_int< _IntType1 > & | __x | |||
) | [friend] |
Extracts a unform_int random number distribution __x
from the input stream __is
.
__is | An input stream. | |
__x | A uniform_int random number generator engine. |
__x
extracted or in an error state.