Coin flipping and number cubes