1、随机种子
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
srand((unsigned)time(NULL));
unsigned int t = rand()%54;
cout<<t<<endl;
system("pause");
return 0;
}
1、随机种子
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
srand((unsigned)time(NULL));
unsigned int t = rand()%54;
cout<<t<<endl;
system("pause");
return 0;
}