simple markov chain generator