std::bernou...tion::reset(3)
π 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
- 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