From 04a05266e54f66cbb72b25428401b71407e3d287 Mon Sep 17 00:00:00 2001 From: Rsge <rsge@web.de> Date: Sun, 3 Apr 2022 02:45:27 +0200 Subject: [PATCH] Added info about dice thrown in graph --- DiceRollOdds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiceRollOdds.py b/DiceRollOdds.py index 3ffb12c..f1eb2ec 100644 --- a/DiceRollOdds.py +++ b/DiceRollOdds.py @@ -61,7 +61,7 @@ while True: for i in range(rolls, rolls * sides + 1): sums.append(i) probabilities.append(round(probability_calculator(i, rolls, sides) * 100, 6)) - info_str = "The probability of your throw was {} %\n".format(probabilities[playersum - rolls]) + info_str = "The probability of your throw using {}d{} was {} %\n".format(rolls, sides, probabilities[playersum - rolls]) # Finding maximum/a maximum = max(probabilities) -- GitLab