A RetroSearch Logo

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

Search Query:

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

class

<random>

std::knuth_b
typedef shuffle_order_engine <minstd_rand0,256> knuth_b;

Knuth-B generator

An engine adaptor that returns shuffled sequences generated with the simple pseudo-random number generator engine minstd_rand0.

It is an instantiation of the shuffle_order_engine adaptor on a linear_congruential_engine with the following template parameters:


parameter name value Engine base engine minstd_rand0 k table size 256
Member types The following alias is a member type of knuth_b:

member type definition notes result_type uint_fast32_t The type of the numbers generated.


Member functions As a shuffle_order_engine type, it has the following member functions:
(constructor)
Construct shuffle-order 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)

Non-member functions As a shuffle_order_engine type, the following operator overloads may be applied to it:
operator<<
Insert into output stream (function template)
operator>>
Extract from input stream (function template)
relational operators
Relational operators (function template)

Member constexpr constants member constant definition notes table_size 256 The size of the buffer table.
See also
minstd_rand0
Minimal Standard minstd_rand0 generator (class)
shuffle_order_engine
Shuffle-order random number engine adaptor (class template)
linear_congruential_engine
Linear congruential random number engine (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