std::unifor...bution::min(3)

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

πŸ’– std::unifor...bution::min(3) πŸ’–

hiiii bestie!! welcome to the C++ Standard Libary manual β€” yep, that’s the manual name, folded right up in here because we’re cute like that. this page is all about std::uniform_int_distribution::min, and she is lowkey iconic.


🌸 NAME 🌸

std::uniform_int_distribution::min β€” literally std::uniform_int_distribution::min. no cap, that’s the name.

✨ Synopsis ✨

result_type min() const;  (since C++11)

okay so this is the whole flex: it returns the minimum value potentially generated by the distribution. (since C++11) is part of the vibe, keep it.

πŸŽ€ Parameters πŸŽ€

(none)

not a single parameter. zero. nada. she takes nothing, bestie.

πŸ¦‹ Return value πŸ¦‹

the minimum value potentially generated by the distribution. that’s the tea πŸ’…

πŸ”₯ Complexity πŸ”₯

Constant.

so like, constant complexity. no messy drama, just straight to the point.

πŸ‘‘ See also πŸ‘‘

  • max β€” returns the maximum potentially generated value (C++11) (public member function)

mwah πŸ’‹ this cutie comes from http://cppreference.com, dated 2024.06.10, and it’s the std::unifor...bution::min(3) page. byeee 🫢✨

πŸ“¦ where this page comes from