logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::independent_bits_engine< _RandomNumberEngine, __w, _UIntType >

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdstd::independent_bits_...ngine,__w,_UIntType>(3cxx)

Constructor & Destructor Documentation

template<typename_RandomNumberEngine,size_t__w,typename_UIntType>std::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::independent_bits_engine()[inline]
       Constructs a default independent_bits_engine engine. The underlying engine is default constructed as
       well.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>std::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::independent_bits_engine(const_RandomNumberEngine&__rng)[inline],[explicit]
       Copy constructs a independent_bits_engine engine. Copies an existing base class random number generator.

       Parameters__rng An existing (base class) engine object.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>std::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::independent_bits_engine(_RandomNumberEngine&&__rng)[inline],[explicit]
       Move constructs a independent_bits_engine engine. Copies an existing base class random number generator.

       Parameters__rng An existing (base class) engine object.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>std::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::independent_bits_engine(result_type__s)[inline],[explicit]
       Seed constructs a independent_bits_engine engine. Constructs the underlying generator engine seeded with
       __s.

       Parameters__s A seed value for the base class engine.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>template<typename_Sseq,typename=_If_seed_seq<_Sseq>>std::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::independent_bits_engine(_Sseq&__q)[inline],[explicit]
       Generator construct a independent_bits_engine engine.

       Parameters__q A seed sequence.

Detailed Description

template<typename_RandomNumberEngine,size_t__w,typename_UIntType>
       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 specified number of bits
       __w.

       Since
           C++11

Member Function Documentation

template<typename_RandomNumberEngine,size_t__w,typename_UIntType>const_RandomNumberEngine&std::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::base()const[inline],[noexcept]
       Gets a const reference to the underlying generator engine object.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>voidstd::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::discard(unsignedlonglong__z)[inline]
       Discard a sequence of random numbers.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>staticconstexprresult_typestd::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::max()[inline],[static],[constexpr]
       Gets the maximum value in the generated random number range.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>staticconstexprresult_typestd::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::min()[inline],[static],[constexpr]
       Gets the minimum value in the generated random number range.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::result_typestd::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::operator()()
       Gets the next value in the generated random number sequence.

       References std::__lg(), and std::numeric_limits<_Tp>::max().

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>voidstd::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::seed()[inline]
       Reseeds the independent_bits_engine object with the default seed for the underlying base class generator
       engine.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>template<typename_Sseq>_If_seed_seq<_Sseq>std::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::seed(_Sseq&__q)[inline]
       Reseeds the independent_bits_engine object with the given seed sequence.

       Parameters__q A seed generator function.

   template<typename_RandomNumberEngine,size_t__w,typename_UIntType>voidstd::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::seed(result_type__s)[inline]
       Reseeds the independent_bits_engine object with the default seed for the underlying base class generator
       engine.

Member Typedef Documentation

template<typename_RandomNumberEngine,size_t__w,typename_UIntType>typedef_UIntTypestd::independent_bits_engine<_RandomNumberEngine,__w,_UIntType>::result_type
       The type of the generated random value.

Name

       std::independent_bits_engine< _RandomNumberEngine, __w, _UIntType >

Synopsis

       #include <random>

   PublicTypestypedef _UIntType result_typePublicMemberFunctionsindependent_bits_engine ()
           Constructs a default independent_bits_engine engine.
       independent_bits_engine (_RandomNumberEngine &&__rng)
           Move constructs a independent_bits_engine engine.
       template<typename_Sseq , typename  = _If_seed_seq<_Sseq>> independent_bits_engine (_Sseq &__q)
           Generator construct a independent_bits_engine engine.
       independent_bits_engine (const _RandomNumberEngine &__rng)
           Copy constructs a independent_bits_engine engine.
       independent_bits_engine (result_type__s)
           Seed constructs a independent_bits_engine engine.
       const _RandomNumberEngine & base () const noexcept
           Gets a const reference to the underlying generator engine object.
       voiddiscard (unsigned long long __z)
           Discard a sequence of random numbers.
       result_typeoperator() ()
           Gets the next value in the generated random number sequence.
       voidseed ()
           Reseeds the independent_bits_engine object with the default seed for the underlying base class
           generator engine.
       template<typename_Sseq > _If_seed_seq< _Sseq > seed (_Sseq &__q)
           Reseeds the independent_bits_engine object with the given seed sequence.
       voidseed (result_type__s)
           Reseeds the independent_bits_engine object with the default seed for the underlying base class
           generator engine.

   StaticPublicMemberFunctionsstatic constexpr result_typemax ()
           Gets the maximum value in the generated random number range.
       static constexpr result_typemin ()
           Gets the minimum value in the generated random number range.

   Friends
       bool operator== (const independent_bits_engine &__lhs, const independent_bits_engine &__rhs)
           Compares two independent_bits_engine random number generator objects of the same type for equality.
       template<typename _CharT , typename _Traits > std::basic_istream< _CharT, _Traits > & operator>>
           (std::basic_istream< _CharT, _Traits > &__is, std::independent_bits_engine< _RandomNumberEngine, __w,
           _UIntType > &__x)
           Extracts the current state of a % subtract_with_carry_engine random number generator engine __x from
           the input stream __is.

See Also