- Categories:
ZIPF¶
Returns a Zipf-distributed integer, for N elements and characteristic exponent s.
Syntax¶
Usage notes¶
The computational cost of choosing a single random number is logarithmic in the argument
N. More importantly, the memory cost is linear forN. Because of this, the argumentNis limited to the inclusive range[1, 16777215].genspecifies the generator expression for the function. For more information, see Usage notes.The first two arguments (
sandN) must be constants.