Markov chaining ... super simple....
found it online... then generated a bit of Bernstein
http://bdp.glia.ca/markov-bern/