std::uniform_int_distribution::uniform_int_distribution
提供:cppreference.com
< cpp | numeric | random | uniform int distribution
|
|
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. |
| explicit uniform_int_distribution( IntType a = 0, IntType b = std::numeric_limits<IntType>::max() ); |
(1) | (C + + 11以来) |
| explicit uniform_int_distribution( const param_type& params ); |
(2) | (C + + 11以来) |
新しいディストリビューオブジェクトを構築します。最初のバージョンは
aとb分布パラメータとして使用し、2番目のバージョンは、分布パラメータとしてparamsを使用しています.Original:
Constructs new distribution object. The first version uses
a and b as the distribution parameters, the second version uses params as the distribution parameters.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] パラメータ
| a | - | '分布パラメータ(最小値)
Original: the a distribution parameter (minimum value) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| b | - | B分布パラメータ(最大値)
Original: the b distribution parameter (maximum value) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| params | - | 分布パラメータセット
Original: the distribution parameter set The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] ノート
そのa≤bを必要とします
Original:
Requires that a≤b
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.