static string Convert(string rawText, string[] people, string[] places, string[] foods, string[] compartments, string[] animals, string[] countries, string[] demonyms)
string readText = rawText;
Random rnd = new Random();
if (readText.IndexOf("]") != -1)
int readLocation = readText.IndexOf("[");
for (int i = readLocation; i < readText.Length; i++)
if (string.Equals(readText.Substring(i, 1), "]") == true)
readType = readText.Substring(readLocation + 1, i - readLocation - 1);
if (string.Equals(readType, "person"))
int index = rnd.Next(people.Length);
string thing = people[rnd.Next(0, index)];
people = RemoveIndex(people, index);
readText = readText.Substring(0, readLocation) + thing + readText.Substring(readLocation2 + 1);
else if (string.Equals(readType, "place"))
int index = rnd.Next(places.Length);
string thing = places[rnd.Next(0, index)];
places = RemoveIndex(places, index);
readText = readText.Substring(0, readLocation) + thing + readText.Substring(readLocation2 + 1);
else if (string.Equals(readType, "number"))
int thing = rnd.Next(2, 70);
readText = readText.Substring(0, readLocation) + thing + readText.Substring(readLocation2 + 1);
else if (string.Equals(readType, "food"))
int index = rnd.Next(foods.Length);
string thing = foods[rnd.Next(0, index)];
people = RemoveIndex(foods, index);
readText = readText.Substring(0, readLocation) + thing + readText.Substring(readLocation2 + 1);
else if (string.Equals(readType, "comp"))
string thing = compartments[rnd.Next(0, compartments.Length)];
readText = readText.Substring(0, readLocation) + thing + readText.Substring(readLocation2 + 1);
else if (string.Equals(readType, "animal"))
string thing = animals[rnd.Next(0, animals.Length)];
readText = readText.Substring(0, readLocation) + thing + readText.Substring(readLocation2 + 1);
else if (string.Equals(readType, "country"))
string thing = countries[rnd.Next(0, countries.Length)];
readText = readText.Substring(0, readLocation) + thing + readText.Substring(readLocation2 + 1);
else if (string.Equals(readType, "demo"))
string thing = demonyms[rnd.Next(0, demonyms.Length)];
readText = readText.Substring(0, readLocation) + thing + readText.Substring(readLocation2 + 1);
while (readText.IndexOf("]") != -1);
static string[] RemoveIndex(string[] array, int Index) {
string[] newarray = new string[array.Length];
for (int i = 0; i < array.Length; i++) {
newarray[arraycount] = array[i];
public static void Main()
Console.WriteLine("Welcome to the Why Tho Warning Generator");
Console.WriteLine("This is the #1 place to generate stupid warnings");
Console.WriteLine("Sponsored by: The avid reader");
Console.WriteLine("There are four settings as to how long your warning will be");
Console.WriteLine("1: Average");
Console.WriteLine("2: Essay");
Console.WriteLine("3: Novella");
Console.WriteLine("4: Harry Potter and the Order of the Phoenix");
string finalproduct = "";
Random rnd = new Random();
string[] warning = new string[]{"WARNING! Do not", "I would be super sad if you did this on my birthday:", "Jack the Yeti would throw a party on your roof if you did this:",
"Please don't", "NEVER EVER!!!", "Rule 4: Do not", "PLEASE!!! Do not", "BE WARNED!!!: Don't", "MY NANNY TOLD ME NOT TO DINE ON SPONGES BECAUSE OF THIS:", "I swear on my [demo] grandfather, if you do this, I will kidnap [animal]:"};
string[] people = new string[]{"Julius Caesar", "Arthur Bo-Bab", "Judish Snottydoddle", "Lemur Strangler", "Uncle Duncan", "the avid reader", "Jack the Yeti", "An Oobis",
"Big Frog", "Don the Alchemist", "John the Poet", "Horace Waffle Fry", "the True TickleOgre", "the False GurgleGoblin", "a Gigglemonk", "Screaming Ticklish Austin", "Screaming Hickory Tree",
"Olem Sholem Shell", "Ulrich", "Frostgiant", "your French-Canadian tour guide", "Lars Goober"};
string[] places = new string[]{"West Amsterdam", "a small cave in the Anatolian tectonic plate", "the New England colonies", "[person]'s Garage", "downtown Berlin",
"the birthplace of [person]", "the store that sells [food]", "Deathtunnel", "The Apartment of Mystery Mastery", "a house atop Tickle Top Mountain", "the podiatrist that [person] visits on Tuesdays",
"an empty Amazon warehouse", "a sedan being carried by [person]'s friends", "the capital of [country]", "South Poland", "[person]'s summer home in [country]", "[country]"};
string[] activities = new string[]{"while chowing down on [food] on course to [place]", "while throwing [animal] covered in [food] at [person]", "whilst hiding [food] in [comp] at [person]'s cousin's residence",
"while hiking through [number] miles of tunnels under [place]", "while reading the newest version of the Bible, written by [person],"};
string[] starters = new string[]{"Go to [place] with [food] in [comp]", "Steal [person]'s stache of [food]", "Ride [animal] to [place] with your best bud, [person] who is visiting from [country]",
"Read a book about [animal] that went all the way from [place] to [person]'s house"};
string[] foods = new string[]{"mustard seeds", "unpopped popcorn", "canola oil", "Mama's Round Tortillas", "[number] bricks of condensed mayonaise", "salmon", "raw chicken with soy sauce",
"[number] ounces of diluted sangria", "ketchup", "the dog's ears", "Jack the Yeti's popsicles", "traditional [demo] food", "chocolate pencils", "diced red onions", "[number] pounds of assorted cheeses", "a warm tic-tac",
"[number] severely bruised banannas", "a bucket of fish eggs"};
string[] compartments = new string[]{"your pockets", "your left nostril", "a Walmart bag", "your Dad's favorite toolbox", "a small crevasse in your 1:[number] scale replica of [place]",
"your ear", "your hair", "a box strapped to the back of [animal]", "your copy of the Trojan horse", "the [demo] president's wallet, which you stole,", "your special box of friendship bracelets"};
string[] animals = new string[]{"an eagle", "a wombat", "an aardvark", "a tawny frogmouth", "an elephant", "a frog", "a miniature tortoise", "an elf", "a berkshire pig", "the [demo] national animal"};
string[] countries = new string[]{"Nicaragua", "Panama", "the United States", "United Kingdom", "Azerbaijan", "Georgia (the country)", "Hungary", "Austria", "Montenegro", "Kazakhstan", "Luxembourg", "Thailand", "Mars"};
string[] demonyms = new string[]{"Nicaraguan", "Panaman", "American", "British", "Azerbaijani", "Georgian (the country)", "Hungarian", "Austrian", "Montenegroan", "Kazakhstanian", "Luxembourgish", "Thai", "Martian"};
string[] prepositions = new string[]{"during the " + rnd.Next(4, 20) + "th anniversary of the day [person] got [animal] as a pet", "the day after [person] dropped [food] from a helicopter down upon [place]",
rnd.Next(1,48) + " hours after cooking [animal] over an open flame", "during a solar eclipse", "during a lunar eclipse",
"during the eclipsing of a spherical box of [food] by [animal] owned by [person]", "during a Triple Berry Mango moon", "within earshot of a conversation between [person], who may or may not be schizophrenic, and [person] on the topic of [comp]",
"mere minutes after consuming [food] and experiencing severe anaphylaxis", "during a Super Backflip Hummus Moon", "during a Card-Deck-Missing-A-King-of-Spades Moon", "during a Linen Blue Hashbrown Moon", "during the birthday of some random guy from [country]",
"during a Somersault Disco Party Probiscus Moon", "near the detonation site of [number] megatons of Nitroglycerin"};
setting = Console.ReadLine();
Console.WriteLine("You selected setting 1: Average");
Console.WriteLine("Generating Random Warning...");
finalproduct = Convert(warning[rnd.Next(0, warning.Length)] + " " + starters[rnd.Next(0, starters.Length)] + ".", people, places, foods, compartments, animals, countries, demonyms);
Console.WriteLine(finalproduct);
Console.WriteLine("You selected setting 2: Essay");
Console.WriteLine("Generating Random Warning...");
finalproduct = Convert(warning[rnd.Next(0, warning.Length)] + " " + starters[rnd.Next(0, starters.Length)] + " " + activities[rnd.Next(0, activities.Length)] + " " + prepositions[rnd.Next(0, prepositions.Length)] + ".", people, places, foods, compartments, animals, countries, demonyms);
Console.WriteLine(finalproduct);
Console.WriteLine("You selected setting 3: Novella");
Console.WriteLine("Generating Random Warning...");
finalproduct = Convert(warning[rnd.Next(0, warning.Length)] + " " + starters[rnd.Next(0, starters.Length)] + " " + activities[rnd.Next(0, activities.Length)] + " " + prepositions[rnd.Next(0, prepositions.Length)] + " " + activities[rnd.Next(0, activities.Length)] + " " + prepositions[rnd.Next(0, prepositions.Length)] + ".", people, places, foods, compartments, animals, countries, demonyms);
Console.WriteLine(finalproduct);
Console.WriteLine("You selected setting 4: Harry Potter and the Order of the Phoenix");
Console.WriteLine("Generating Random Warning...");
finalproduct = Convert(warning[rnd.Next(0, warning.Length)] + " " + starters[rnd.Next(0, starters.Length)] + " " + activities[rnd.Next(0, activities.Length)] + " " + prepositions[rnd.Next(0, prepositions.Length)] + " " + activities[rnd.Next(0, activities.Length)] + " " + prepositions[rnd.Next(0, prepositions.Length)] + " " + activities[rnd.Next(0, activities.Length)] + " " + prepositions[rnd.Next(0, prepositions.Length)] + " " + activities[rnd.Next(0, activities.Length)] + " " + prepositions[rnd.Next(0, prepositions.Length)] + ".", people, places, foods, compartments, animals, countries, demonyms);
Console.WriteLine(finalproduct);
Console.WriteLine("You selected setting 5: Why Tho");