This is a random project I whipped up in two minutes (I'm not joking). Just click the flag and it randomly selects heads or tails.
All of the code by me.