<random>

std::ranlux24_base

typedef subtract_with_carry_engine <uint_fast32_t, 24, 10, 24> ranlux24_base;
Ranlux 24 base generator
A subtract-with-carry pseudo-random generator of 24-bit numbers, generally used as the base engine for the ranlux24 generator.

It is an instantiation of the subtract_with_carry_engine with the following template parameters
引數名稱
UIntType結果型別 (result type)uint_fast32_t
w字大小 (word size)24
sshort lag10
rlong lag24

成員型別

以下別名是...的成員型別ranlux24_base:

成員型別定義說明
result_typeuint_fast32_t生成的數字的型別。

成員函式

As a subtract_with_carry_engine type, it has the following member functions

非成員函式

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

成員常量

成員常量定義說明
word_size24狀態序列中每個的位數。
short_lag10短滯後值。
long_lag24長滯後值。
default_seed19780503u構造或播種時使用的預設種子

另見