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:
parameternamevalue
Enginebase engineminstd_rand0
ktable size256

Member types

The following alias is a member type of knuth_b:

member typedefinitionnotes
result_typeuint_fast32_tThe type of the numbers generated.

Member functions

As a shuffle_order_engine type, it has the following member functions:

Non-member functions

As a shuffle_order_engine type, the following operator overloads may be applied to it:

Member constexpr constants

member constantdefinitionnotes
table_size256The size of the buffer table.

See also