- This progam simulates n steps of a Markov chain with transition matrix P. You first input the "Matrix size" (number of states) and and then after clicking on "Create" you input the transition matrix and the "No." of steps and check whether you want the outputs printer. Then the program prints, for each state, the number of times that the state was reached, and the fraction of the time the chain was in this state.

The source.