Endless story

Probabilistic state transition model.
source code - markov chains at wikipedia

Start the story