#include<iostream>
#include<ctime>//包含ctime头文件
using namespace std;
int main()
{
srand((unsigned int)time(NULL));
int b = rand()%100 + 1;
cout<<b<<endl;
system("pause");
return 0;
}
#include<iostream>
#include<ctime>//包含ctime头文件
using namespace std;
int main()
{
srand((unsigned int)time(NULL));
int b = rand()%100 + 1;
cout<<b<<endl;
system("pause");
return 0;
}