c++加入随机数种子

#include<ctime>
srand((unsigned int)time(NULL));//为了防止每次产生的随机数都相同
posted @ 2022-05-08 21:20  纸包鱼  阅读(110)  评论(0)    收藏  举报