From 46e402215392d155205d32c0e0e35e25e3823bf4 Mon Sep 17 00:00:00 2001 From: Daniel <59575049+lemoentjiez@users.noreply.github.com> Date: Mon, 12 Dec 2022 16:34:01 +0200 Subject: [PATCH] Update sixth.py --- LabPSA_2/sixth.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/LabPSA_2/sixth.py b/LabPSA_2/sixth.py index 8b13789..0b806c5 100644 --- a/LabPSA_2/sixth.py +++ b/LabPSA_2/sixth.py @@ -1 +1,8 @@ +import random + +tries, wins = 1000000, 0 +for _ in range(tries): + if 375 <= random.randint(0, 1499) <= 1124 and 375 <= random.randint(0, 1499) <= 1124: + wins += 1 +print(wins/tries)