std::linear...::operator()(3)

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

πŸ’– NAME πŸ’–

okay so bestie, this is the std::linear_congruential_engine::operator() page, and the manual header calls it std::linear...::operator()(3) from the C++ Standard Libary β€” yes, β€œLibary” is literally how the manual spells it, not me, iykyk πŸ’….

The NAME bit is exactly:

std::linear_congruential_engine::operator() - std::linear_congruential_engine::operator()

yes, it’s the same thing twice, that’s the whole entrance, and honestly? iconic.


🌸 Synopsis 🌸

result_type operator()();  (since C++11)

Generates a pseudo-random value. The state of the engine is advanced by one position. periodt.

⚠️ heads up bestie: the original page literally says This section is incomplete β€” that’s not me being dramatic, that’s the actual note πŸ™ˆ.

πŸ¦‹ Parameters πŸ¦‹

(none)

literally none. zero. no parameters. nada. the void is the parameter 🫢.


πŸŽ€ Return value πŸŽ€

A pseudo-random number in [min(), max()].

that’s the whole return vibe ✨.


⭐ Complexity ⭐

Amortized constant.


πŸ‘‘ See also πŸ‘‘

  • discard β€” advances the engine’s state by a specified amount (C++11) (public member function)

πŸ’€ Category πŸ’€

  • * Todo without reason

the category is literally * Todo without reason β€” no cap, that’s what it says πŸ’€.


kiss kiss 🫢 β€” source: http://cppreference.com, version/date: 2024.06.10, page: std::linear...::operator()(3). bye bestie, go generate some pseudo-random numbers responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from