std::lognor...::operator()(3)

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

okay so welcome to the std::lognor...::operator()(3) page, bestie β€” this is the C++ Standard Libary's little corner for std::lognormal_distribution::operator() and honestly it's giving random but make it lognormal πŸ’–βœ¨ (yes, that's the spelling up top, don't come for me 😭)

πŸ’– NAME πŸ’–

std::lognormal_distribution::operator() - std::lognormal_distribution::operator()

no cap, the NAME section really does say it twice like that πŸ˜­πŸ’…

✨ Synopsis ✨

Here's the exact signature lineup, bestie β€” copy it like the icon it is:

template< class Generator >                                       (1)
(since C++11)
   result_type operator()( Generator& g );

template< class Generator >                                       (2)
(since C++11)
   result_type operator()( Generator& g, const param_type& params );

Generates random numbers that are distributed according to the associated probability function. The entropy is acquired by calling g.operator().

The first version uses the associated parameter set, the second version uses params.

And the associated parameter set is not modified β€” periodt, it stays exactly as it was πŸ’…

🌸 Parameters 🌸

  • g β€” a uniform random bit generator object. That's your generator bestie, the one doing the actual generating ✨
  • params β€” distribution parameter set to use instead of the associated one. Lowkey the "use this instead" backup set πŸŽ€

πŸ¦‹ Type requirements πŸ¦‹

  • Generator must meet the requirements of UniformRandomBitGenerator. That's the vibe check it has to pass, no exceptions 🫢

πŸŽ€ Return value πŸŽ€

The generated random number. That's the whole gift, bestie β€” one freshly generated random number 🎁✨

⭐ Complexity ⭐

Amortized constant number of invocations of g.operator(). That's the whole complexity vibe, bestie β€” iykyk πŸ‘‘


🫢 source: http://cppreference.com Β· version/date: 2024.06.10 Β· now go slay some random numbers, bestie πŸ’…βœ¨
πŸ“¦ where this page comes from