Scroll to navigation

std::mersenne_twister_engine::operator()(3) C++ Standard Libary std::mersenne_twister_engine::operator()(3)

NAME

std::mersenne_twister_engine::operator() - std::mersenne_twister_engine::operator()

Synopsis

result_type operator()(); (since C++11)

Advances the state of the engine, and generates a pseudo-random value from the new state.

Return value

A pseudo-random number in [min(), max()].

Complexity

Amortized constant.

See also

discard advances the engine's state by a specified amount
(public member function)

2026.11.10 http://cppreference.com