This is an old revision of the document!
flip.py
import random
total = 0
for i in range(2000000000000000000): flip = random.randint(0, 1) total = total + flip average = total / (i + 1) print(i, flip, total, average)