string random_name()
{
string str_four;
srand(time(NULL));
int x = rand() % 3 + 1;
switch (x)
{
case 1:
{
string str_one = "The ";
srand(time(NULL));
int x1 = rand() % 3 + 1;
switch (x1)
{
case 1:
{
string str_two = "fallen ";
srand(time(NULL));
int x2 = rand() % 3 + 1;
switch (x2)
{
case 1:
{
string str_three = "of Gondolin";
str_four = str_one + str_two + str_three;
break;
}
case 2:
{
string str_three = "King Arthur";
str_four = str_one + str_two + str_three;
break;
}
case 3:
{
string str_three = "London bridge";
str_four = str_one + str_two + str_three;
break;
}
default:
break;
}
break;
}
case 2:
{
string str_two = "Hobbit ";
srand(time(NULL));
int x2 = rand() % 3 + 1;
switch (x2)
{
case 1:
{
string str_three = "An unexpected journey";
str_four = str_one + str_two + str_three;
break;
}
case 2:
{
string str_three = "The Desolation of Smaug";
str_four = str_one + str_two + str_three;
break;
}
case 3:
{
string str_three = "Battle of the Five Armies";
str_four = str_one + str_two + str_three;
break;
}
default:
break;
}
break;
}
case 3:
{
string str_two = "Great ";
srand(time(NULL));
int x2 = rand() % 3 + 1;
switch (x2)
{
case 1:
{
string str_three = "Gatsby";
str_four = str_one + str_two + str_three;
break;
}
case 2:
{
string str_three = "Sword of Gandalf";
str_four = str_one + str_two + str_three;
break;
}
case 3:
{
string str_three = "Live";
str_four = str_one + str_two + str_three;
break;
}
default:
break;
}
break;
}
default:
break;
}
break;
}
case 2:
{
string str_one = "Live ";
srand(time(NULL));
int x1 = rand() % 3 + 1;
switch (x1)
{
case 1:
{
string str_two = "one ";
srand(time(NULL));
int x2 = rand() % 3 + 1;
switch (x2)
{
case 1:
{
string str_three = "man";
str_four = str_one + str_two + str_three;
break;
}
case 2:
{
string str_three = "cat";
str_four = str_one + str_two + str_three;
break;
}
case 3:
{
string str_three = "pirate";
str_four = str_one + str_two + str_three;
break;
}
default:
break;
}
break;
}
case 2:
{
string str_two = "in ";
srand(time(NULL));
int x2 = rand() % 3 + 1;
switch (x2)
{
case 1:
{
string str_three = "1888";
str_four = str_one + str_two + str_three;
break;
}
case 2:
{
string str_three = "New York";
str_four = str_one + str_two + str_three;
break;
}
case 3:
{
string str_three = "London";
str_four = str_one + str_two + str_three;
break;
}
default:
break;
}
break;
}
case 3:
{
string str_two = "is ";
srand(time(NULL));
int x2 = rand() % 3 + 1;
switch (x2)
{
case 1:
{
string str_three = "life is a terrible thing";
str_four = str_one + str_two + str_three;
break;
}
case 2:
{
string str_three = "hard";
str_four = str_one + str_two + str_three;
break;
}
case 3:
{
string str_three = "fun";
str_four = str_one + str_two + str_three;
break;
}
default:
break;
}
break;
}
default:
break;
}
break;
}
case 3:
{
string str_one = "Encyclopedia ";
srand(time(NULL));
int x1 = rand() % 3 + 1;
switch (x1)
{
case 1:
{
string str_two = "of ";
srand(time(NULL));
int x2 = rand() % 3 + 1;
switch (x2)
{
case 1:
{
string str_three = "Philosophy";
str_four = str_one + str_two + str_three;
break;
}
case 2:
{
string str_three = "Mathematics";
str_four = str_one + str_two + str_three;
break;
}
case 3:
{
string str_three = "Physics";
str_four = str_one + str_two + str_three;
break;
}
default:
break;
}
break;
}
case 2:
{
string str_two = "for ";
srand(time(NULL));
int x2 = rand() % 3 + 1;
switch (x2)
{
case 1:
{
string str_three = "Children";
str_four = str_one + str_two + str_three;
break;
}
case 2:
{
string str_three = "kids";
str_four = str_one + str_two + str_three;
break;
}
case 3:
{
string str_three = "Everyday Life";
str_four = str_one + str_two + str_three;
break;
}
default:
break;
}
break;
}
case 3:
{
string str_two = "then ";
srand(time(NULL));
int x2 = rand() % 3 + 1;
switch (x2)
{
case 1:
{
string str_three = "Dota 2";
str_four = str_one + str_two + str_three;
break;
}
case 2:
{
string str_three = "CS 1.6";
str_four = str_one + str_two + str_three;
break;
}
case 3:
{
string str_three = "LOL";
str_four = str_one + str_two + str_three;
break;
}
default:
break;
}
break;
}
default:
break;
}
}
default:
break;
}
return str_four;
}
int main()
{
setlocale(LC_ALL, "Russian");
srand(time(NULL));
cout << random_name() << "\n";
system("pause");
return 0;
}