Computer model of button and thread game

Based on the description of the game in Deep Simplicity by John Gribbin

The button and thread game is played as follows: You have a pile of N buttons and an unlimited suupply of thread. You pick 2 buttons at random and tie them together with the thread, then put them back. Next you pick another two buttons... and so on, to create clusters of buttons.

The simulation below uses 1500 buttons and keeps going until each button is joined together into a super cluster. The following graph charts these properties(in intervals of 20 threads):

The graph is built out of a simple html list of the data (using some css styling), which can be seen if you turn off all stylesheets for this page.

The most interesting facts I think are

Contact me at wheresrhys@gmail.com if you have any questions, or visit my website.