Markov Chain
·1 min
This Markov Chain was just a simple exercise to see probability at work. Every tick has a 50% chance of moving to the next or previous chain, except when it is either the first or last chain, where it has the same chance of iterating over itself again.
See the Pen Markov Chain by Neal Fennimore ( @nealfennimore) on CodePen.