摘要:
时间种子的随机数的生成,需要#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
阅读(156)
评论(0)
推荐(0)
浙公网安备 33010602011771号