#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
using namespace std;
string p[10]={"wu","rumen","puji","tigao","shengxuan","NOI"};
string make()//随机字符串
{
string e="";
srand(time(0));
int x=rand()%40;
while(x--)
{
//srand(time(0));
e+=(char)(rand()%90+32);
}
return e;
}
void sc(long x/*组数*/)//生成字符串+数字+字符串
{
srand(time(0));
while(x--)
{
cout<<make()<<' '<<rand()%300<<' '<<p[rand()%5-1]<<endl;
}
}
int main()
{
long n;
cin>>n;
sc(n);
return 0;
}
希望输出不同的,如:
3
iofejof 44 puji
jifjeofwj 22 tigao
fjeiowqfjncn 24 rumen
可是他生成的全一样……