Probability, Statistics, Data Science, Mathematics.
list of items. Naively, we could just implement this CDF and inverse-CDF by calculating the Harmonic numbers’ sums. However, this involves doing enormous sums and will be very slow for large N. For N=100 million, generating a single variable can take many minutes. This appears to be the method used