Draws a single random value from this Zipf distribution using inverse transform sampling.
Uses binary search on the precomputed CDF table for O(log n) per draw.
a random integer in [1, n].
[1, n]
the source of randomness.