User Tools

Site Tools


slush:codetalkers

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)
slush/codetalkers.1495203507.txt.gz ยท Last modified: 2018/11/25 01:33 (external edit)