How to realize numerical Random discrete Distribution with C++
This article introduces the relevant knowledge of "how to use C++ to achieve random and discrete numerical distribution". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
# include
# include
# include
# include
# include
Whole Lord ()
{
Random device read
Mt19937 generation (read ())
The γ distribution of / / α = 1, β = 2 is similar to the exponential distribution.
Standard:: gamma distribution d (1BI 2)
Mapping history
Yes (n = 0; n