Calculator - Equals is broken

This commit is contained in:
2023-06-12 20:30:53 +10:00
parent b2dad99f6c
commit 762841fb20
2 changed files with 136 additions and 154 deletions

View File

@@ -22,6 +22,7 @@ def pick_game():
randomIndex = random.randrange(0, len(games))
coinFlip = random.randrange(0, 2)
print(coinFlip)
if coinFlip:
return f"Valorant ({games[randomIndex]})"
@@ -29,18 +30,3 @@ def pick_game():
return games[randomIndex]
I = 1000000000
i = I
zeros = 0
ones = 0
while i > 0:
number = random.randrange(0, 2)
if number:
ones += 1
else:
zeros += 1
i -= 1
percentZeros = zeros/I
print(percentZeros)