Commit: 2f1021eeb8d35ffe68036f8440d44c9e64185fef Author: Vi Grey Date: 2017-10-13 03:04 UTC Summary: Update comments to fix ambiguity fairflip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fairflip.py b/fairflip.py index be24313..74c2d90 100644 --- a/fairflip.py +++ b/fairflip.py @@ -4,7 +4,7 @@ import sys heads_percent = int(sys.argv[1]) # Integer value of argument while heads_percent > 0 and heads_percent < 100: # Loop if valid heads_percent - # If random number is under heads_percent, then it is HEADS + # If random number is under heads_percent, then flip is HEADS flip1 = heads_percent > random.randint(0, 100) # True if HEADS result flip2 = heads_percent > random.randint(0, 100) # True if HEADS result if flip1 != flip2: # Continue loop if flip1 and flip2 are the same