std::mersenne_twister_engine::mersenne_twister_engine

explicit mersenne_twister_engine( result_type value = default_seed );
(1) (since C++11)
template< class Sseq > 
explicit mersenne_twister_engine( Sseq& s );
(2) (since C++11)
mersenne_twister_engine( const mersenne_twister_engine& );
(3) (since C++11)
(implicitly declared)

Constructs the pseudo-random number engine.

The overload (2) only participate in overload resolution if Sseq qualifies as a SeedSequence. In particular, it is excluded from the set of candidate functions if Sseq is convertible to result_type.

Parameters

value - seed value to use in the initialization of the internal state
s - seed sequence to use in the initialization of the internal state

Complexity

See also

sets the current state of the engine
(public member function)
doc_CPP
2016-10-11 10:04:47
Comments
Leave a Comment

Please login to continue.