public string WriteARandomSentence() { string s = ""; int sentenceLength = RandomInspirations.Next(4, 25); int randomInspiration; for (int i = 0; i < sentenceLength; i++) { randomInspiration = RandomInspirations.Next(1, Enum.GetNames(typeof(WordTypes)).Length + 1); if (randomInspiration == (int)EnumUtility.WordTypes.Adjective) { s += Adjectives.RandomWord(i == 0); } else if (randomInspiration == (int)EnumUtility.WordTypes.Noun) { s += Nouns.RandomWord(i == 0); } else if (randomInspiration == (int)EnumUtility.WordTypes.Verb) { s += Verbs.RandomWord(i == 0); } else if (randomInspiration == (int)EnumUtility.WordTypes.Pronoun) { s += Pronouns.RandomWord(i == 0); } if (i != sentenceLength - 1) { if (RandomInspirations.Next(1, 10) == 1) { s += ","; } s += " "; } else { s += ". "; } } return(s); }