C++之随机数

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

参考帖子:

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

ubuntu访问github不顺畅的问题:

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

posted @ 2020-02-18 19:50  退而结网人  阅读(148)  评论(0编辑  收藏  举报