C++之随机数

rand()函数用来产生随机数,srand()函数用来初始化种子,没有种子随机数是固定的,有了种子会根据种子变化而变化.

参考帖子:

https://blog.csdn.net/hgl868/article/details/7057843

ubuntu访问github不顺畅的问题:

https://blog.csdn.net/yingqubaifumei/article/details/93793829

猜你喜欢

转载自www.cnblogs.com/iloveww/p/12318756.html