fadfadfafsfasd / cdqpt.github.io

陈德强的博客
https://www.purethought.cn/
0 stars 0 forks source link

C++随机数 | ALaDing #196

Open fadfadfafsfasd opened 5 years ago

fadfadfafsfasd commented 5 years ago

https://purethought.cn/2019/10/05/%E7%BC%96%E7%A8%8B/C/C++%E9%9A%8F%E6%9C%BA%E6%95%B0/

C++通过一组协作的类来产生随机数。随机数引擎类可以生成unsigned随机数序列,随机数分布类可以生成服从特定概率分布的随机数。

include <iostream>

include<random>

using std: