std::linear...engine::min(3)
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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms