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