std::lognor...::operator()(3)
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 π¦
Generatormust meet the requirements ofUniformRandomBitGenerator. 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
- 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