Is there any scripting language function (like in
bash) that samples from a zipf-like distribution, for exponent
PS: I am aware of existence of a numpy function that can generate zipf samples, but it's only for
Based on the basic equations, how about:
Uses only builtin, basic routines in the language. Could be converted to just about any other language, e.g.
Wouldn't a Python expovariate distribution, with the correct value of lambda, work?