<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构造或播种时使用的默认种子

另见