std::normal...:operator()(3)
π std::normal_distribution::operator() β C++ Standard Libary page π
okay so we're on the std::normal...:operator()(3) page, and the manual name is C++ Standard Libary β yes, that spelling, iykyk π
. this is the call-operator page for std::normal_distribution, and it's giving overloaded, since-C++11, random-number-realness β¨
β¨ NAME β¨
std::normal_distribution::operator() - std::normal_distribution::operator()
π Synopsis π
two overloads, both marked (since C++11), both absolute icons:
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 );
these calls generate random numbers that are distributed according to the associated probability function. the entropy is acquired by calling g.operator() β that's the whole vibe π₯
the first version uses the associated parameter set, the second version uses params. and bestie, the associated parameter set is not modified β she stays exactly as she is, 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. that's the rule, bestie
β Return value β
the generated random number. that's it, that's the tea π«
π₯ Complexity π₯
amortized constant number of invocations of g.operator(). lowkey efficient, no cap π§
that's the whole page, bestie π«Ά β source: http://cppreference.com, version/date: 2024.06.10, and the footer title is std::normal...:operator()(3). mwah π
π¦ 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