I\'ve created what is a fairly simple MATLAB script to simulate the behaviour discussed in this question over on Maths SE.