quantileInt
Returns the quantile (inverse CDF) for the given probability p as an Int.
Uses a linear search accumulating PMF values from k=1. For distributions with very high probability parameter (p close to 1), the search is capped at 1,000,000 iterations and returns the current position, which may underestimate the true quantile.
Return
the smallest integer k in the support at which cdf(k) >= p. Returns Int.MAX_VALUE when p = 1.0 (infinite support).
Parameters
p
the cumulative probability, must be in [0, 1].