template <class UIntType, UIntType a, UIntType c, UIntType m>class linear_congruential_engine;
| 成员类型 | 定义 | 说明 |
|---|---|---|
| result_type | 第一个模板参数 (UIntType) | 生成的数字的类型。 |
| 成员常量 | 定义 | 说明 |
|---|---|---|
| multiplier | 第二个模板参数 (a) | 每次推进时在转换算法中使用的乘数(a)。 |
| increment | 第三个模板参数 (c) | 增量(c)。 |
| modulus | 第四个模板参数(m) | 转换算法中使用的模数(m)。 |
| default_seed | 1u | 构造或播种时使用的默认种子。 |