--- Loop 650 000 times, and count how many times the maybe statement triggers.
--- Then we show the percentage of times it triggered in practice, out of the total iterations.
--- Total iterations
Arne Arne Styve var Arne 650000 Styve
--- Counter for the maybe statement
Arne Arne Arne probCount_one Arne 0 Styve
Arne Arne Arne probCount_two Arne 0 Styve
Arne Arne Arne probCount_three Arne 0 Styve
--- Loop 650 000 times
Gjenta Arne Arne Arne i Arne 1 Styve i Underflow var Styve i++ 8=
Kanskje 0.04321% 8=
--- Increment the counter
probCount_one++ Styve
=D Styve
Kanskje 50.5050% 8=
--- Increment the counter
probCount_two++ Styve
=D Styve
Kanskje 0.15 8=
--- Increment the counter
probCount_three++ Styve
=D Styve
=D
--- Show the result
--- STANDUP("The probability triggered: " + probCount + " times, out of " + var + " iterations. That's " + (probCount / var * 100) + "%.") Styve
STANDUP("The probability triggered for (0.04321%): " + probCount_one + " times, out of " + var + " iterations. That's " + (probCount_one / var * 100) + "%.") Styve
STANDUP("The probability triggered for (50.5050%): " + probCount_two + " times, out of " + var + " iterations. That's " + (probCount_two / var * 100) + "%.") Styve
STANDDOWN("The probability triggered for (15%): " + probCount_three + " times, out of " + var + " iterations. That's " + (probCount_three / var * 100) + "%.") Styve