会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ant_colonies
do something, to be somebody.
博客园
首页
新随笔
联系
管理
2020年7月20日
【0003】与随机数有关的一些问题
摘要: 时间种子的随机数的生成,需要#include <time.h>。 #include <time.h> time_t ts; unsigned int num = time(&ts); srand(num); // 或者 srand((unsigned int)(time(NULL))); 时间变化的
阅读全文
posted @ 2020-07-20 15:39 ant_colonies
阅读(141)
评论(0)
推荐(0)
编辑
公告