linear_congruential_engine::linear_congruential_engine

エンジンを構築します。

explicit linear_congruential_engine(result_type x0 = default_seed);
explicit linear_congruential_engine(seed_seq& seq);

パラメーター

  • x0
    シード値。

  • seq
    ランダム化されたシードを供給する seed_seq 型のオブジェクト。

解説

最初のコンストラクターは、seed(x0)を呼び出すことでオブジェクトを構築して初期化します。2 つ目のコンストラクターは、seed(seq) を呼び出すことでオブジェクトを構築して初期化します。

必要条件

ヘッダー : <random>

名前空間: std

参照

関連項目

<random>

linear_congruential_engine クラス