std::linear_congruential_engine
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <random>
|
||
template< class UIntType, |
(C++11およびそれ以降) | |
linear_congruential_engineは、符号なし整数の擬似乱数を生成します。 LCGの状態はサイズ1のものであり、単一の整数で構成されています.
Original:
A linear_congruential_engine produces unsigned integer pseudorandom numbers. The state of a LCG is of size 1 and consists of a single integer.
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.
LCGの機能の遷移アルゴリズムはx
i+1 ← (ax
i+c) mod mです.
i+1 ← (ax
i+c) mod mです.
Original:
The transition algorithm of the LCG function is x
i+1 ← (ax
i+c) mod m.
i+1 ← (ax
i+c) mod m.
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.
[編集] メンバータイプ
メンバー·タイプ
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. | |
[静的] |
出力範囲で可能な最小値を取得します 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. (パブリック静的メンバ関数) |
[静的] |
gets the largest possible value in the output range (パブリック静的メンバ関数) |
[編集] 非メンバ関数
2つの擬似乱数エンジンの内部状態を比較します 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 UIntType multiplier [静的] |
乗数項(a)の. Original: the multiplier term (a). The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリック静的メンバ定数) |
constexpr UIntType increment [静的] |
インクリメント用語(C). Original: the increment term (c). The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリック静的メンバ定数) |
constexpr UIntType modulus [静的] |
弾性項(メートル). Original: the modulus term (m). The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリック静的メンバ定数) |
constexpr UIntType default_seed [静的] |
デフォルトのシード(1). Original: the default seed (1). The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリック静的メンバ定数) |