Returns the quantile (inverse CDF) for the given probability p as an Int.
the smallest integer k in the support at which cdf(k) >= p.
cdf(k) >= p
the cumulative probability, must be in [0, 1].
[0, 1]