Markov Chain Generator