Simulation of Markov Processes as stochastic processes.
For correct implementation, we should use rational numbers instead of floating points.