Scroll to navigation

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

NAME

std::discard_block_engine::operator() - std::discard_block_engine::operator()

Synopsis

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

Generates a random value. The state of the underlying engine is advanced one or more times.

Parameters

(none)

Return value

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

Exceptions

Throws nothing.

See also

discard advances the adaptor's state by a specified amount (C++11) (public member function)

2026.11.10 http://cppreference.com