随机名字生成器

#include<bits/stdc++.h>
using namespace std;
namespace kong{bool st;}
namespace zhu{
string fu[]={"q","w","r","t","y","p","s","d","f","g","h","j","k","l","z","c","v","b","n","m"};
string yuan[]={"a","e","i","o","u"};
string main(){
	_timeb T;
	_ftime(&T);
	mt19937 ran(T.millitm+time(0)*1000);
	int len=ran()%13+1,fl=ran()%2;
	while(len--){
		fl^=1;
		if(fl==0){
			cout<<fu[ran()%(sizeof(fu)/8)];
		}
		else{
			cout<<yuan[ran()%(sizeof(yuan)/8)];
			if(ran()%2){
				cout<<yuan[ran()%(sizeof(yuan)/8)];
			}
		}
	}
	cout<<'\n';
	return "???";
}
}
namespace kong{bool ed;double MB(){return (&st-&ed)/1048576.0;}}
signed main(){
	cin.tie(0);cout.tie(0);
	ios::sync_with_stdio(0);
	cerr<<zhu::main()<<'\n'<<kong::MB()<<'\n';
}
posted @ 2025-12-09 18:17  LEWISAK  阅读(2)  评论(0)    收藏  举报