A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/random/independent_bits_engine/ below:

class template

<random>

std::independent_bits_engine
template <class Engine, size_t w, class UIntType>class independent_bits_engine;

Independent-bits random number engine adaptor

An engine adaptor class template that adapts a pseudo-random number generator Engine type to produce random numbers with a specific number of bits (w).

Template parameters
Engine
A random number engine type. All standard generators, except random_device, are random number engine types.
w
Word size: Number of bits of each generated number.
size_t is an unsigned integral type.
UIntType
An unsigned integer type.
Values produced by the engine are of this type.

Member types The following alias is a member type of independent_bits_engine:

member type definition notes result_type The third template parameter (UIntType) The type of the numbers generated.


Member functions
(constructor)
Construct independent-bits engine (public member function)
min
Minimum value (public static member function)
max
Maximum value (public static member function)
seed
Seed base engine (public member function)
operator()
Generate random number (public member function)
discard
Advance internal state (public member function)
base
Return base engine (public member function)

Non-member functions
operator>>
Extract from input stream (function template)
operator<<
Insert into output stream (function template)
relational operators
Relational operators (function template)

See also
discard_block_engine
Discard-block random number engine adaptor (class template)
shuffle_order_engine
Shuffle-order random number engine adaptor (class template)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4