且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

生成具有不均匀密度的随机数

更新时间:2023-02-10 13:30:00

a href =http://en.cppreference.com/w/cpp/numeric/random =nofollow> C ++ 11随机设施或来自 Boost ,其中有大量不均匀的分配。

Easiest solution if applicable: Use C++11 random facilities or the ones from Boost, which have lots of non-uniform distributions for you.