Random Writer Program based on Markov Model of specifiable order