Showing content from https://cplusplus.com/reference/random/ranlux48_base/ below:
class
<random>
std::ranlux48_base
typedef subtract_with_carry_engine <uint_fast64_t, 48, 5, 12> ranlux48_base;
Ranlux 48 base generator
A subtract-with-carry pseudo-random generator of 48-bit numbers, generally used as the base engine for the ranlux48 generator.
It is an instantiation of the subtract_with_carry_engine with the following template parameters:
parameter name value UIntType result type uint_fast64_t w word size 48 s short lag 5 r long lag 12
Member types The following alias is a member type of ranlux48_base:
member type definition notes result_type uint_fast64_t The type of the numbers generated.
Member functions As a subtract_with_carry_engine type, it has the following member functions:
-
(constructor)
-
Construct subtract-with-carry engine (public member function)
-
min
-
Minimum value (public static member function)
-
max
-
Maximum value (public static member function)
-
seed
-
Seed engine (public member function)
-
operator()
-
Generate random number (public member function)
-
discard
-
Advance internal state (public member function)
Non-member functions As a subtract_with_carry_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 word_size 48 The number of bits of each word in the state sequence. short_lag 5 The short lag value. long_lag 12 The long lag value. default_seed 19780503u The default seed used on construction or seeding.
See also
-
subtract_with_carry_engine
-
Subtract-with-carry 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