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

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

std::linear...engine::min(3) πŸ’…

okay so this is the C++ Standard Libary manual page for the tiny-but-iconic std::linear_congruential_engine::min. It’s giving β€œsmallest value the engine can hand you,” and honestly? slay. ✨


🌸 NAME 🌸

std::linear_congruential_engine::min β€” std::linear_congruential_engine::min

No cap, that’s the name twice, because the original said it twice and we don’t skip details. 🫢

✨ Synopsis ✨

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

Returns the minimum value potentially generated by the random-number engine. This value is equal to 1u if increment is 0u, and is equal to 0u otherwise. Iconic behavior, fr fr. πŸ’–

πŸŽ€ Parameters πŸŽ€

(none) β€” literally zero parameters, bestie. Not a single one. πŸ’…

🌈 Return value 🌈

The minimum potentially generated value. That’s the whole return, no cap. ⭐

πŸ¦‹ Complexity πŸ¦‹

Constant. That’s it, that’s the complexity. 🧚

πŸ‘‘ See also πŸ‘‘

  • max β€” gets the largest possible value in the output range; [static] (C++11) (public static member function). The main-character counterpart to this one. πŸ”₯

xoxo, your C++ bestie πŸ’œ β€” source/version: http://cppreference.com, date: 2024.06.10

πŸ“¦ where this page comes from