Working markov generator