std::bernou...tion::reset(3)

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

πŸ’– NAME πŸ’–

std::bernoulli_distribution::reset β€” std::bernoulli_distribution::reset (yes bestie, same name on both sides, we love a symmetrical moment πŸ’…). This page is std::bernoulli_distribution::reset(3), from the C++ Standard Libary manual β€” that manual name is spelled exactly like that in the header, no cap πŸ‘€.


🌸 Synopsis 🌸

void reset();  (since C++11)

Okay so this is the reset button for the distribution object's internal state ✨. After you call this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). It's giving fresh-start energy, periodt πŸ¦‹.


πŸŽ€ Parameters πŸŽ€

(none) β€” literally not a single parameter. The empty set ate and left no crumbs πŸ’….


🫢 Return value 🫢

(none) β€” it does its little reset thing and gives you nothing back. Iconic, honestly.


⭐ Complexity ⭐

Constant. That's the whole complexity, bestie β€” constant πŸ”₯.


footer sign-off, served cute: source/version: http://cppreference.com Β· date: 2024.06.10 πŸŒˆπŸ’œ

πŸ“¦ where this page comes from