quantileInt
Returns the quantile (inverse CDF) for the given probability p as an integer.
Finds the smallest number of successes k such that the cumulative probability of k or fewer successes is at least p. Uses a binary search over [0, trials].
Return
the smallest integer k at which cdf(k) >= p.
Parameters
p
the cumulative probability, must be in [0, 1].