Reference

<random>

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:
(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 constantdefinitionnotes
table_size256The 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)

AltStyle によって変換されたページ (->オリジナル) /