.TH "std::independent_bits_engine< _RandomNumberEngine, __w, _UIntType >" 3cxx "Tue Jul 2 2019" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::independent_bits_engine< _RandomNumberEngine, __w, _UIntType > .SH SYNOPSIS .br .PP .SS "Public Types" .in +1c .ti -1c .RI "typedef _UIntType \fBresult_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBindependent_bits_engine\fP ()" .br .RI "Constructs a default independent_bits_engine engine\&. " .ti -1c .RI "\fBindependent_bits_engine\fP (const _RandomNumberEngine &__rng)" .br .RI "Copy constructs a independent_bits_engine engine\&. " .ti -1c .RI "\fBindependent_bits_engine\fP (_RandomNumberEngine &&__rng)" .br .RI "Move constructs a independent_bits_engine engine\&. " .ti -1c .RI "\fBindependent_bits_engine\fP (\fBresult_type\fP __s)" .br .RI "Seed constructs a independent_bits_engine engine\&. " .ti -1c .RI "template::value && !std::is_same<_Sseq, _RandomNumberEngine>::value> ::type> \fBindependent_bits_engine\fP (_Sseq &__q)" .br .RI "Generator construct a independent_bits_engine engine\&. " .ti -1c .RI "const _RandomNumberEngine & \fBbase\fP () const noexcept" .br .RI "Gets a const reference to the underlying generator engine object\&. " .ti -1c .RI "void \fBdiscard\fP (unsigned long long __z)" .br .RI "Discard a sequence of random numbers\&. " .ti -1c .RI "\fBresult_type\fP \fBoperator()\fP ()" .br .RI "Gets the next value in the generated random number sequence\&. " .ti -1c .RI "void \fBseed\fP ()" .br .RI "Reseeds the independent_bits_engine object with the default seed for the underlying base class generator engine\&. " .ti -1c .RI "void \fBseed\fP (\fBresult_type\fP __s)" .br .RI "Reseeds the independent_bits_engine object with the default seed for the underlying base class generator engine\&. " .ti -1c .RI "template void \fBseed\fP (_Sseq &__q)" .br .RI "Reseeds the independent_bits_engine object with the given seed sequence\&. " .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static constexpr \fBresult_type\fP \fBmax\fP ()" .br .RI "Gets the maximum value in the generated random number range\&. " .ti -1c .RI "static constexpr \fBresult_type\fP \fBmin\fP ()" .br .RI "Gets the minimum value in the generated random number range\&. " .in -1c .SS "Friends" .in +1c .ti -1c .RI "bool \fBoperator==\fP (const \fBindependent_bits_engine\fP &__lhs, const \fBindependent_bits_engine\fP &__rhs)" .br .RI "Compares two independent_bits_engine random number generator objects of the same type for equality\&. " .ti -1c .RI "template \fBstd::basic_istream\fP< _CharT, _Traits > & \fBoperator>>\fP (\fBstd::basic_istream\fP< _CharT, _Traits > &__is, \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType > &__x)" .br .RI "Extracts the current state of a % subtract_with_carry_engine random number generator engine \fC__x\fP from the input stream \fC__is\fP\&. " .in -1c .SH "Detailed Description" .PP .SS "template .br class std::independent_bits_engine< _RandomNumberEngine, __w, _UIntType >" Produces random numbers by combining random numbers from some base engine to produce random numbers with a specifies number of bits \fC__w\fP\&. .PP Definition at line 1059 of file random\&.h\&. .SH "Member Typedef Documentation" .PP .SS "template typedef _UIntType \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::\fBresult_type\fP" The type of the generated random value\&. .PP Definition at line 1062 of file random\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::\fBindependent_bits_engine\fP ()\fC [inline]\fP" .PP Constructs a default independent_bits_engine engine\&. The underlying engine is default constructed as well\&. .PP Definition at line 1075 of file random\&.h\&. .SS "template \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::\fBindependent_bits_engine\fP (const _RandomNumberEngine & __rng)\fC [inline]\fP, \fC [explicit]\fP" .PP Copy constructs a independent_bits_engine engine\&. Copies an existing base class random number generator\&. .PP \fBParameters:\fP .RS 4 \fI__rng\fP An existing (base class) engine object\&. .RE .PP .PP Definition at line 1085 of file random\&.h\&. .SS "template \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::\fBindependent_bits_engine\fP (_RandomNumberEngine && __rng)\fC [inline]\fP, \fC [explicit]\fP" .PP Move constructs a independent_bits_engine engine\&. Copies an existing base class random number generator\&. .PP \fBParameters:\fP .RS 4 \fI__rng\fP An existing (base class) engine object\&. .RE .PP .PP Definition at line 1095 of file random\&.h\&. .SS "template \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::\fBindependent_bits_engine\fP (\fBresult_type\fP __s)\fC [inline]\fP, \fC [explicit]\fP" .PP Seed constructs a independent_bits_engine engine\&. Constructs the underlying generator engine seeded with \fC__s\fP\&. .PP \fBParameters:\fP .RS 4 \fI__s\fP A seed value for the base class engine\&. .RE .PP .PP Definition at line 1105 of file random\&.h\&. .SS "template template::value && !std::is_same<_Sseq, _RandomNumberEngine>::value> ::type> \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::\fBindependent_bits_engine\fP (_Sseq & __q)\fC [inline]\fP, \fC [explicit]\fP" .PP Generator construct a independent_bits_engine engine\&. .PP \fBParameters:\fP .RS 4 \fI__q\fP A seed sequence\&. .RE .PP .PP Definition at line 1118 of file random\&.h\&. .SH "Member Function Documentation" .PP .SS "template const _RandomNumberEngine& \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::base () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Gets a const reference to the underlying generator engine object\&. .PP Definition at line 1153 of file random\&.h\&. .PP Referenced by std::operator<<()\&. .SS "template void \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::discard (unsigned long long __z)\fC [inline]\fP" .PP Discard a sequence of random numbers\&. .PP Definition at line 1174 of file random\&.h\&. .SS "template static constexpr \fBresult_type\fP \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::max ()\fC [inline]\fP, \fC [static]\fP" .PP Gets the maximum value in the generated random number range\&. .PP Definition at line 1167 of file random\&.h\&. .SS "template static constexpr \fBresult_type\fP \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::min ()\fC [inline]\fP, \fC [static]\fP" .PP Gets the minimum value in the generated random number range\&. .PP Definition at line 1160 of file random\&.h\&. .SS "template \fBindependent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::\fBresult_type\fP \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::operator() ()" .PP Gets the next value in the generated random number sequence\&. .PP Definition at line 742 of file bits/random\&.tcc\&. .PP References std::__lg(), std::numeric_limits< _Tp >::max(), std::numeric_limits< _Tp >::min(), and std::shuffle_order_engine< _RandomNumberEngine, __k >::operator()()\&. .PP Referenced by std::discard_block_engine< _RandomNumberEngine, __p, __r >::operator()()\&. .SS "template void \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::seed ()\fC [inline]\fP" .PP Reseeds the independent_bits_engine object with the default seed for the underlying base class generator engine\&. .PP Definition at line 1127 of file random\&.h\&. .SS "template void \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::seed (\fBresult_type\fP __s)\fC [inline]\fP" .PP Reseeds the independent_bits_engine object with the default seed for the underlying base class generator engine\&. .PP Definition at line 1135 of file random\&.h\&. .SS "template template void \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType >::seed (_Sseq & __q)\fC [inline]\fP" .PP Reseeds the independent_bits_engine object with the given seed sequence\&. .PP \fBParameters:\fP .RS 4 \fI__q\fP A seed generator function\&. .RE .PP .PP Definition at line 1145 of file random\&.h\&. .SH "Friends And Related Function Documentation" .PP .SS "template bool operator== (const \fBindependent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType > & __lhs, const \fBindependent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType > & __rhs)\fC [friend]\fP" .PP Compares two independent_bits_engine random number generator objects of the same type for equality\&. .PP \fBParameters:\fP .RS 4 \fI__lhs\fP A independent_bits_engine random number generator object\&. .br \fI__rhs\fP Another independent_bits_engine random number generator object\&. .RE .PP \fBReturns:\fP .RS 4 true if the infinite sequences of generated values would be equal, false otherwise\&. .RE .PP .PP Definition at line 1199 of file random\&.h\&. .SS "template template \fBstd::basic_istream\fP<_CharT, _Traits>& operator>> (\fBstd::basic_istream\fP< _CharT, _Traits > & __is, \fBstd::independent_bits_engine\fP< _RandomNumberEngine, __w, _UIntType > & __x)\fC [friend]\fP" .PP Extracts the current state of a % subtract_with_carry_engine random number generator engine \fC__x\fP from the input stream \fC__is\fP\&. .PP \fBParameters:\fP .RS 4 \fI__is\fP An input stream\&. .br \fI__x\fP A independent_bits_engine random number generator engine\&. .RE .PP \fBReturns:\fP .RS 4 The input stream with the state of \fC__x\fP extracted or in an error state\&. .RE .PP .PP Definition at line 1217 of file random\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.