std::mersenne_twister_engine
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <random>
|
||
| template< class UIntType, |
(C++11 起) | |
| 本节是不完整的 |
[编辑] 会员类型
| 会员类型
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
result_type
|
由发动机产生的积分型。结果是不确定的,如果这不是一个无符号整数类型.
Original: The integral type generated by the engine. Results are undefined if this is not an unsigned integral type. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 成员函数
Original: Construction and Seeding The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 构造的发动机 Original: constructs the engine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
| 设置当前状态的发动机 Original: sets the current state of the engine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
Original: Generation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 推进发动机的状态,并返回生成的值 Original: advances the engine's state and returns the generated value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
| 推进发动机的状态按指定的量 Original: advances the engine's state by a specified amount The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
Original: Characteristics The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| [静态的] </ SPAN></div></div>
|
得到的输出范围中的最小可能值 Original: gets the smallest possible value in the output range The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共静态成员函数) |
| [静态的] </ SPAN></div></div>
|
gets the largest possible value in the output range (公共静态成员函数) |
[编辑] 非成员函数
| 比较两个伪随机数引擎的内部状态的 Original: compares the internal states of two pseudo-random number engines The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 执行流的输入和输出的伪随机数的发动机 Original: performs stream input and output on pseudo-random number engine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
[编辑] 会员对象
| constexpr size_t word_size [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr size_t state_size [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr size_t shift_size [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr size_t mask_bits [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr UIntType xor_mask [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr size_t tempering_u [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr UIntType tempering_d [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr size_t tempering_s [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr UIntType tempering_b [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr size_t tempering_t [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr UIntType tempering_c [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr size_t tempering_l [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr UIntType initialization_multiplier [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||
| constexpr UIntType default_seed [静态的] </ SPAN></div></div>
|
(公共静态成员常量) | ||