构造引擎。
explicit linear_congruential_engine(result_type x0 = default_seed);
explicit linear_congruential_engine(seed_seq& seq);
参数
x0
种子值。seq
提供了个已随机打乱的种子类型 seed_seq 的对象。
备注
第一个构造函数构造对象并通过调用 seed(x0)将其初始化。第二个构造函数构造对象并通过调用 seed(seq)将其初始化。
要求
标头: <random>
命名空间: std