code to generate numbers with zipf distribution
Dear all,
I am looking for a function that can generate a serial of random numbers which follows the zipf distribution with a given mean. The only thing that I can find now is with a given parameter of alpha (an exponent characterizing the distribution). Does anyone know if there is a library provide this kind of function or where should I look for it?
Thank you!!!
Re: code to generate numbers with zipf distribution
Not completely certain that this will help you, but the answer to this question on stackoverflow seems on-point: "Generate random numbers distributed by Zipf" at http://stackoverflow.com/questions/1...ibuted-by-zipf