template <class UIntType, size_t w, size_t n, size_t m, size_t r, UIntType a, size_t u, UIntType d, size_t s, UIntType b, size_t t, UIntType c, size_t l, UIntType f> class mersenne_twister_engine;
成員型別 | 定義 | 說明 |
---|---|---|
result_type | 第一個模板引數 (UIntType) | 生成的數字的型別。 |
成員常量 | 定義 | 說明 |
---|---|---|
word_size | 第二個模板引數 (w) | 狀態序列中每個字的位數。 |
state_size | 第三個模板引數 (n) | 狀態序列中的元素數量(遞迴次數)。 |
shift_size | 第四個模板引數(m) | 扭轉(twist)時用於轉換值的移位大小。 |
mask_bits | 第五個模板引數(r) | 在每次扭轉(twist)時標記字分隔點的位數。 |
xor_mask | 第六個模板引數(a) | 在每次扭轉(twist)上用作線性函式的異或掩碼。 |
tempering_u | 第七個模板引數(u) | 在生成演算法的擾碼(tempering)過程中使用的引數 u 的移位大小。 |
tempering_d | 第八個模板引數(d) | 在生成演算法的擾碼(tempering)過程中用作引數 d 的異或掩碼。 |
tempering_s | 第九個模板引數(s) | 在生成演算法的擾碼(tempering)過程中使用的引數 s 的移位大小。 |
tempering_b | 第十個模板引數(和 b) | 在生成演算法的擾碼(tempering)過程中用作引數 b 的異或掩碼。 |
tempering_t | 第十一個模板引數(t) | 在生成演算法的擾碼(tempering)過程中使用的引數 t 的移位大小。 |
tempering_c | 第十二個模板引數(c) | 在生成演算法的擾碼(tempering)過程中用作引數 c 的異或掩碼。 |
tempering_l | 第十三模板引數(l) | 在生成演算法的擾碼(tempering)過程中使用的引數 l 的移位大小。 |
initialization_multiplier | 第十四模板引數(f) | 當使用單個值作為種子時,用於初始化狀態序列的初始化乘數。 |
default_seed | 5489u | 構造或播種時使用的預設種子。 |