std::poisso...::operator()(3)
okay so bestie, we're on the std::poisso...::operator()(3) page, and the manual name is C++ Standard Libary (yes, that's the spelling here π). It's giving C++ random-number realness, and honestly it's not scary β here's the whole vibe check π
π NAME π
std::poisson_distribution::operator()-std::poisson_distribution::operator()
β¨ Synopsis β¨
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 );
So there are two versions, both since C++11 β¨. They generate random numbers that are distributed according to the associated probability function, and the entropy is acquired by calling g.operator().
The first version uses the associated parameter set, and the second version uses params. The associated parameter set is not modified β periodt π
πΈ Parameters πΈ
gβ a uniform random bit generator objectparamsβ distribution parameter set to use instead of the associated one
π¦ Type requirements π¦
Generatormust meet the requirements ofUniformRandomBitGenerator.
π Return value π
The generated random number. That's the tea β
π₯ Complexity π₯
Amortized constant number of invocations of g.operator(). Translation: no whole saga of calls per number, bestie β amortized constant, periodt β¨
mwah π source is http://cppreference.com, date/version stamp is 2024.06.10, and the page is std::poisso...::operator()(3). bye bestie, go be iconic with your random numbers π«Άβ¨
π¦ 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