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