std::normal...ution::reset(3)

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

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to std::normal...ution::reset(3) β€” straight out of the C++ Standard Libary manual (yes, spelled exactly like that on the page, iykyk 😭). The name line is literally:

std::normal_distribution::reset

That’s the whole name. No extra lore. Iconic behavior honestly.


✨ Synopsis ✨

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

This cutie has been around since C++11, takes zero arguments, and does exactly one little job: it resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). That’s the whole point β€” previous operator() calls don’t get to haunt the next one πŸ’….


🌸 Parameters 🌸

(none)

literally no parameters. nothing to pass. no stress. 🫢


πŸ¦‹ Return value πŸ¦‹

(none)

it returns nothing. that’s the vibe. no value, no drama.


⭐ Complexity ⭐

Constant.

constant complexity, periodt. no hidden extra work energy here πŸ”₯.


source/version: http://cppreference.com β€” dated 2024.06.10 β€” and the footer is also repping std::normal...ution::reset(3). bye bestie, go reset your internal state and slay πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from