Scroll to navigation

std::linear_congruential_engine::max(3) C++ Standard Libary std::linear_congruential_engine::max(3)

NAME

std::linear_congruential_engine::max - std::linear_congruential_engine::max

Synopsis

static constexpr result_type max(); (since C++11)

Returns the maximum value potentially generated by the random-number engine.

Return value

m - 1u

Complexity

Constant.

See also

min gets the smallest possible value in the output range [static] (public static member function)

2026.11.10 http://cppreference.com