A Simulation of Markov Chain