Share via


linear_congruential_engine::linear_congruential_engine

Constructs the engine.

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

Parameters

  • x0
    The seed value.

  • seq
    The object of type seed_seq that supplies the randomized seed.

Remarks

The first constructor constructs an object and initializes it by calling seed(x0). The second constructor constructs an object and initializes it by calling seed(seq).

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

linear_congruential_engine Class

Other Resources

<random> Members