#include<time.h>srand((unsigned)time(NULL));a=rand(); 转载于:https://www.cnblogs.com/Cathycat/p/11240376.html