std::mersenne_twister_engine
来自cppreference.com
![]() |
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <random> 中定义
|
||
template< class UIntType, |
(C++11 起) | |
本章尚未完成 |
目录 |
[编辑] 会员类型
会员类型
|
Definition |
result_type
|
由发动机产生的积分型。结果是不确定的,如果这不是一个无符号整数类型.
原文: The integral type generated by the engine. Results are undefined if this is not an unsigned integral type. |
[编辑] 成员函数
| |
构造的发动机 (公共成员函数) | |
设置当前状态的发动机 原文: sets the current state of the engine (公共成员函数) | |
| |
推进发动机的状态,并返回生成的值 原文: advances the engine's state and returns the generated value (公共成员函数) | |
推进发动机的状态按指定的量 原文: advances the engine's state by a specified amount (公共成员函数) | |
| |
[静态的]</div></div>
|
得到的输出范围中的最小可能值 原文: gets the smallest possible value in the output range (公共静态成员函数) |
[静态的]</div></div>
|
gets the largest possible value in the output range (公共静态成员函数) |
[编辑] 非成员函数
比较两个伪随机数引擎的内部状态的 原文: compares the internal states of two pseudo-random number engines (函数) | |
执行流的输入和输出的伪随机数的发动机 原文: performs stream input and output on pseudo-random number engine (函数) |
[编辑] 会员对象
constexpr size_t word_size [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr size_t state_size [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr size_t shift_size [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr size_t mask_bits [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr UIntType xor_mask [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr size_t tempering_u [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr UIntType tempering_d [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr size_t tempering_s [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr UIntType tempering_b [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr size_t tempering_t [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr UIntType tempering_c [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr size_t tempering_l [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr UIntType initialization_multiplier [静态的]</div></div>
|
(公共静态成员常量) | ||
constexpr UIntType default_seed [静态的]</div></div>
|
(公共静态成员常量) |