A CONTAINER contains REDMAR red MARBLEs,
GREENMAR green MARBLEs, and BLUEMAR blue MARBLEs.
If a MARBLE is randomly chosen, what is the probability that it is not CHOSEN_COLOR?
There are REDMAR + GREENMAR + BLUEMAR = TOTAL MARBLEs in the CONTAINER.
There are CHOSEN_NUMBER CHOSEN_COLOR MARBLEs.
That means TOTAL - CHOSEN_NUMBER = NUMBER are not CHOSEN_COLOR.
The probability is \displaystyle fractionSimplification(NUMBER, TOTAL).
A fair six-sided die is rolled. What is the probability that the result is RESULT_DESC?
When rolling a die, there are 6 possibilities: 1, 2, 3, 4, 5, and 6.
In this case, only 1 result is favorable: the number RESULT_POSSIBLE[0].
In this case, RESULT_COUNT results are favorable: toSentence(RESULT_POSSIBLE).
The probability is \displaystyle fractionSimplification(RESULT_COUNT, 6).