CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2010
    Posts
    9

    Question 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!!!

  2. #2
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured