c++生成随机数#include<ctime> //time头文件包含srand((unsigned int)time(NULL));//添加随机数种子int num = rand () % 100;生成系统随机数