Monte Carlo Simulation, Mathematical Modeling, Yahtzee.
+= 1 if (set(dices) == {1, 2, 3, 4, 5}) or (set(dices) == {2, 3, 4, 5, 6}): nbStraight +=1 dices = [] if exp>1 and exp%2==0: probaYahtzee.append((nbYahtzee / exp) * 100) probaStraight.append((nbStraight / exp) * 100) probaYhatzee1Roll = nbYahtzee / nbExp probaStraight1Roll = nbStraight / nbExp The