You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<iostream>
#include<ctime>
using namespace std;
int main () {
// 添加随机数种子,利用当前时间作为种子
srand((unsigned int)time(NULL));
int num = rand() % 100 + 1;
cout << num << endl;
return 0;
}