std::linear...engine::max(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸŽ€ std::linear...engine::max(3) πŸŽ€

πŸ’– NAME πŸ’–

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

okay so bestie, welcome to the C++ Standard Libary manual, section 3 β€” yes, that’s the source’s spelling, and we are absolutely not fixing it. This page is about std::linear_congruential_engine::max, and it’s lowkey iconic. πŸ’…

✨ Synopsis ✨

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

Bestie, this is the whole signature. It returns the maximum value potentially generated by the random-number engine. This value is one less than modulus. No cap, that’s the deal. ✨

🌸 Parameters 🌸

(none) β€” literally none. not a single parameter, bestie. 😭

πŸ¦‹ Return value πŸ¦‹

The maximum potentially generated value. periodt. 🫢

πŸ’« Complexity πŸ’«

Constant. so it’s giving no drama. ⭐

🌈 See also 🌈

  • min β€” gets the smallest possible value in the output range [static] (C++11) (public static member function)

xoxo, this page came from http://cppreference.com on 2024.06.10 β€” std::linear...engine::max(3) πŸ’–πŸ§š

πŸ“¦ where this page comes from