independent_bits_engine Class
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at independent_bits_engine Class.
Generates a random sequence of numbers with a specified number of bits by repacking bits from the values returned by its base engine.
template <class Engine, size_t W, class UIntType> class independent_bits_engine;
Parameters
Engine
The base engine type.
W
Word size. Size, in bits, of each number generated. Precondition: 0 < W ≤ numeric_limits<UIntType>::digits
UIntType
The unsigned integer result type. For possible types, see <random>.
independent_bits_engine::independent_bits_engine | independent_bits_engine::base | independent_bits_engine::discard |
independent_bits_engine::operator() | independent_bits_engine::base_type | independent_bits_engine::seed |
For more information about engine members, see <random>.
This template class describes an engine adaptor that produces values by repacking bits from the values returned by its base engine, resulting in W-bit values.
Header: <random>
Namespace: std