Random String Generator..

I made this Random String Generator, because most generators on forums are not very well written..
I don't claim this to be perfect, any criticism will be appreciated.
Regards
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <iostream>
#include <string>
#include <ctime>
using namespace std;
#include <windows.h>

int main ()
{
  static string set1[] = {"ba", "da", "fa","ga","ha","ja","ka","la","ma","na","pa","qa","ra","sa","ta","va","ya","za"};
  static string set2[] = {"eem", "kim", "qi","ni","loo","ola","un","abaa","amaa","xx","hu","ali","yee"};
  static string set3[] = {"-11", "-21", "-3x","-#4","5","-6","-87","00","99","101","187","69","73","89","$$$","@hell",".","313","666"};

  srand(time(NULL));
  int x; int y; int z;
  while(1)
  {

	  x= rand() % 18;
	  y= rand() % 13;
	  z= rand() % 19;

string randchar=set1[x]+set2[y]+set3[z];
cout<<randchar<<endl;
Sleep(1000);
  }
return 0;
}
Topic archived. No new replies allowed.