static void OutPutSentence() { var dic = pool.RandomDic(random); var keys = dic.Key.Split(' '); Console.Write(dic.Key + " "); do { var val = dic.RandomValue(random); Console.Write(val + " "); keys[0] = keys[1]; keys[1] = val; dic = pool[keys[0] + " " + keys[1]]; }while (dic != null); Console.WriteLine(); }