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 | 構造或播種時使用的預設種子。 |