std::weibul...::operator()(3)
π std::weibull_distribution::operator() π
okay bestie, welcome to the std::weibul...::operator()(3) page from the C++ Standard Libary manual. this is the whole vibe for std::weibull_distribution::operator() - std::weibull_distribution::operator(), and it is literally about making random numbers with the distribution's associated probability function. β¨
πΈ NAME πΈ
std::weibull_distribution::operator() - std::weibull_distribution::operator()
bestie, that's the name. iconic, a little repetitive, but iconic. π
π 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 the tea is: it generates random numbers that are distributed according to the associated probability function. the entropy is acquired by calling g.operator(). no cap. π¦
the first version uses the associated parameter set, and the second version uses params. and listen β 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. that's the vibe check, and it has to pass, fr fr. π
β Return value β
the generated random number. that's it, that's the gift. π
π₯ Complexity π₯
amortized constant number of invocations of g.operator(). lowkey efficient, highkey slay. π
and that's the page, bestie π β sourced from http://cppreference.com, dated 2024.06.10, for std::weibul...::operator()(3). bye! πΈπ
π¦ 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