std::unifor...bution::a,b(3)

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

πŸ’… std::uniform_int_distribution::a,b πŸ’…

okay so this is straight outta the C++ Standard Libary manual, section 3 β€” and the main character is std::uniform_int_distribution::a,b. no cap, the vibe is "parameter getters" and they're serving exactly what they say on the tin. πŸ’–


✨ NAME ✨

std::uniform_int_distribution::a,b β€” std::uniform_int_distribution::a,b


🌸 Synopsis 🌸

result_type a() const; (1) (since C++11)
result_type b() const; (2) (since C++11)

These return the parameters the distribution has been constructed with. fr fr, that's the whole job.

  1. Returns the a distribution parameter. It defines the minimum possibly generated value. The default value is 0.
  2. Returns the b distribution parameter. It defines the maximum possibly generated value. The default value is std::numeric_limits<IntType>::max().

🫢 Parameters 🫢

(none)

⭐ Return value ⭐

  1. The a distribution parameter.
  2. The b distribution parameter.

πŸ”₯ See also πŸ”₯

  • param β€” gets or sets the distribution parameter object (C++11) (public member function)

cute little sign-off: source/version is http://cppreference.com, dated 2024.06.10 β€” bye bestie, go get those parameters πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from