The range calculator computes P(c ≤ X ≤ d) using the formula (d - c + 1)/n, simply counting integers in [c, d] and dividing by total outcomes.
Four boundary options:
• [c, d] - Include both endpoints, count d - c + 1 values
• (c, d) - Exclude both, count d - c - 1 values
• [c, d) - Include c, exclude d, count d - c values
• (c, d] - Exclude c, include d, count d - c values
Example: Rolling a die (a = 1, b = 6), what's P(2 ≤ X ≤ 5)? Count {2,3,4,5} = 4 values, so probability is 4/6 = 2/3.