Next: Shuffling and Sampling, Previous: The Hypergeometric Distribution, Up: Random Number Distributions [Index]
This function returns a random integer from the logarithmic distribution. The probability distribution for logarithmic random variates is, for k >= 1.
This function computes the probability p(k) of obtaining k from a logarithmic distribution with probability parameter p, using the formula given above.