std::unifor...:operator()(3)
π NAME π
Hii bestie π«Ά, welcome to the page for std::uniform_real_distribution::operator() from the C++ Standard Libary manual β title std::unifor...:operator()(3) (yes, the title is literally abbreviated with ..., and we are respecting the truncation π
). The NAME section is a lil echo chamber: std::uniform_real_distribution::operator() β std::uniform_real_distribution::operator(). Thatβs the name, periodt. β¨
πΈ Synopsis πΈ
Two overloads, both since C++11, both template-y. Hereβs the exact signature situation:
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 like, what do they do? They 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: call the generatorβs call operator for entropy π₯.
The first version uses the associated parameter set, the second version uses params. The associated parameter set is not modified β hands off, bestie, no touching π«Ά.
π 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(). Thatβs the exact complexity line, bestie β amortized constant, no chaos π
.
Thatβs the page, bestie π«Ά. Source/version energy: http://cppreference.com, dated 2024.06.10. Footer mentioned with love, not pasted: 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