debian man page for std::uniform_int

Query: std::uniform_int

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

std::uniform_int< _IntType >(3cxx)										std::uniform_int< _IntType >(3cxx)

NAME
std::uniform_int< _IntType > -
SYNOPSIS
Public Types typedef _IntType input_type typedef _IntType result_type Public Member Functions result_type max () const result_type min () const template<typename _UniformRandomNumberGenerator > result_type operator() (_UniformRandomNumberGenerator &__urng) template<typename _UniformRandomNumberGenerator > result_type operator() (_UniformRandomNumberGenerator &__urng, result_type __n) void reset () uniform_int (_IntType __min=0, _IntType __max=9) Friends template<typename _IntType1 , typename _CharT , typename _Traits > std::basic_ostream< _CharT, _Traits > & operator<< (std::basic_ostream< _CharT, _Traits > &__os, const uniform_int< _IntType1 > &__x)" template<typename _IntType1 , typename _CharT , typename _Traits > std::basic_istream< _CharT, _Traits > & operator>> (std::basic_istream< _CharT, _Traits > &__is, uniform_int< _IntType1 > &__x)" Detailed Description template<typename _IntType = int>class std::uniform_int< _IntType > Uniform discrete distribution for random numbers. A discrete random distribution on the range $[min, max]$ with equal probability throughout the range. Definition at line 1560 of file tr1_impl/random. Member Typedef Documentation template<typename _IntType = int> typedef _IntType std::uniform_int< _IntType >::input_type The type of the parameters of the distribution. Definition at line 1566 of file tr1_impl/random. template<typename _IntType = int> typedef _IntType std::uniform_int< _IntType >::result_type The type of the range of the distribution. Definition at line 1568 of file tr1_impl/random. Constructor &; Destructor Documentation template<typename _IntType = int> std::uniform_int< _IntType >::uniform_int (_IntType__min = 0, _IntType__max = 9) [inline], [explicit] Constructs a uniform distribution object. Definition at line 1575 of file tr1_impl/random. Member Function Documentation template<typename _IntType = int> result_type std::uniform_int< _IntType >::max () const [inline] Gets the inclusive upper bound of the distribution range. Definition at line 1592 of file tr1_impl/random. template<typename _IntType = int> result_type std::uniform_int< _IntType >::min () const [inline] Gets the inclusive lower bound of the distribution range. Definition at line 1585 of file tr1_impl/random. template<typename _IntType = int> template<typename _UniformRandomNumberGenerator > result_type std::uniform_int< _IntType >::operator() (_UniformRandomNumberGenerator &__urng) [inline] Gets a uniformly distributed random number in the range $(min, max)$. Definition at line 1609 of file tr1_impl/random. template<typename _IntType = int> template<typename _UniformRandomNumberGenerator > result_type std::uniform_int< _IntType >::operator() (_UniformRandomNumberGenerator &__urng, result_type__n) [inline] Gets a uniform random number in the range $[0, n)$. This function is aimed at use with std::random_shuffle. Definition at line 1624 of file tr1_impl/random. template<typename _IntType = int> void std::uniform_int< _IntType >::reset () [inline] Resets the distribution state. Does nothing for the uniform integer distribution. Definition at line 1601 of file tr1_impl/random. Friends And Related Function Documentation template<typename _IntType = int> template<typename _IntType1 , typename _CharT , typename _Traits > 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. Parameters: __os An output stream. __x A uniform_int random number distribution. Returns: The output stream with the state of __x inserted or in an error state. template<typename _IntType = int> template<typename _IntType1 , typename _CharT , typename _Traits > std::basic_istream<_CharT, _Traits>& operator>> (std::basic_istream< _CharT, _Traits > &__is, uniform_int< _IntType1 > &__x) [friend] Extracts a uniform_int random number distribution __x from the input stream __is. Parameters: __is An input stream. __x A uniform_int random number generator engine. Returns: The input stream with __x extracted or in an error state. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Thu Aug 2 2012 std::uniform_int< _IntType >(3cxx)
Related Man Pages
std::binomial_distribution(3) - centos
std::negative_binomial_distribution(3) - centos
std::uniform_int_distribution(3) - centos
std::binomial_distribution(3) - debian
std::uniform_int_distribution(3cxx) - debian
Similar Topics in the Unix Linux Community
&#1604;&#1610;&#1606;&#1603; &#1604;&#1605;&#1588;&#1575;&#1607;&#1583;&#1577; &#1605;&#1576;&#1575;&#1585;&#1575;&#1577; &#1578;&#1588;&#1610;&#1604;&#1587;&#1610; &#1608;&#1575;&#1585;&#1587;&#1606;&#1575;&#1604; &#1575;&#1608;&#1606; &#1604;&#1575