#!/usr/bin/env python # # coinflip.py # by Nick Loadholtes # 5/12/2004 # # A simulation to flip coins. Please don't use this for anything other # than simple amusement. I have no idea how good (or bad) the python # random number generator is. # import random def flipcoin(numtoss): x = 0; heads = 0; tails = 0; while(x