Simple Markov chain generator using a text file as seed