A specialized version of the Zipf distribution f(x) = 1/(1+x)^2. More...
#include <twister.h>
Public Member Functions | |
discreteZipf2 (ibis::uniformRandomNumber &ur, unsigned long imax=ULONG_MAX) | |
unsigned long | next () |
unsigned long | operator() () |
Return a discrete random number in the range of [0, imax]. | |
A specialized version of the Zipf distribution f(x) = 1/(1+x)^2.
Should be much faster than using discreteZipf(2,imax).