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)