A fun little probability puzzle for you.

Okay, here’s the software promised.

jsfiddle.net/rp6e8f7v/1/

Flips a coin a million times, and keeps track of how many times in a row it was flipped. Every time it flips 3 in a row, it records the subsequent flip as a “headsAfter3” or a “tailsAfter3”.

Press “run” in the top left to give a run of 1,000,000