std::bernou...ribution::p(3)

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

πŸŽ€ NAME πŸŽ€

std::bernoulli_distribution::p β€” std::bernoulli_distribution::p (yes bestie, the name is literally the name, iconic πŸ’…)

okay so this is the std::bernou...ribution::p(3) page from the C++ Standard Libary manual, and it's all about the tiny but mighty p() member function. no cap, it's a whole vibe check for your Bernoulli distribution πŸ¦‹


✨ Synopsis ✨

double p() const;  (since C++11)

Returns the p parameter the distribution was constructed with. It defines the probability of generating true. The default value is 0.5. periodt πŸŽ€


🌸 Parameters 🌸

(none)

literally none. zero. nada. no arguments, no drama, just vibes 🫢


πŸ’– Return value πŸ’–

Floating point value identifying the p distribution parameter. slay ✨


πŸ‘‘ See also πŸ‘‘

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

mwah πŸ’‹ β€” sourced from http://cppreference.com, dated 2024.06.10, and yeah the footer is still serving std::bernou...ribution::p(3). catch u later, bestie πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from