typedef linear_congruential_engine<uint_fast32_t, 48271, 0, 2147483647> minstd_rand;
|
|
引數 | 名稱 | 值 | 說明 |
---|---|---|---|
a | 乘數 | 48271 | 素數乘數 |
c | 增量 | 0 | |
m | 模數 | 2147483647 | 231-1 |
成員型別 | 定義 | 說明 |
---|---|---|
result_type | uint_fast32_t | 生成的數字的型別。 |
成員常量 | 定義 | 說明 |
---|---|---|
乘數 | 48271 | 每次推進時在轉換演算法中使用的乘數(a)。 |
增量 | 0 | 增量(c)。 |
模數 | 2147483647 | 轉換演算法中使用的模數(m)。 |
default_seed | 1 | 構造或播種時使用的預設種子。 |