std::discre...ibution::max(3)
π std::discre...ibution::max(3) π
okay bestie, welcome to the C++ Standard Libary manual page for std::discrete_distribution::max β yes, the header is doing that cute ellipsis thing (std::discre...ibution::max), but the actual function name is fully std::discrete_distribution::max. This is the vibe check for the max value this distribution can potentially generate. π«Ά
πΈ NAME πΈ
std::discrete_distribution::maxβstd::discrete_distribution::max
β¨ Synopsis β¨
result_type max() const; (since C++11)
It returns the maximum value potentially generated by the distribution. That's the whole main character move. π
π Parameters π
- (none) β no arguments, no extra baggage. π§
π Return value π
The maximum value potentially generated by the distribution. Yep, that's the answer, and it's giving exactly what it needs to give. β¨
π¦ Complexity π¦
Constant. Zero drama, zero scaling arc. π
π See also π
minβ returns the minimum potentially generated value(C++11)(public member function)
lowkey important: this page is all about the max, but the min bestie is right there if you need the lower bound. π
signed with sparkles and exact facts π β source/version/date: http://cppreference.com, 2024.06.10, std::discre...ibution::max(3).
π¦ 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