Distributions#

Several functions generate values using statistical distributions, giving you control over the shape of your random data.

Numeric Distributions#

FunctionSignatureDescription
exp_fexp_f(rate, min, max, precision)Exponential decay from min
lognorm_flognorm_f(mu, sigma, min, max, precision)Right-skewed with a long tail
norm_fnorm_f(mean, stddev, min, max, precision)Bell curve centered on mean
uniformuniform(min, max)Flat distribution, every value equally likely
zipfzipf(s, v, max)Power-law skew, low values dominate

Set Distributions#

Pick from a predefined set of values using a distribution to control which items are selected most often.

FunctionSignatureDescription
set_expset_exp(values, rate)Exponential distribution over indices; lower indices picked most often
set_lognormset_lognorm(values, mu, sigma)Log-normal distribution over indices; right-skewed selection
set_normset_norm(values, mean, stddev)Normal distribution over indices; mean index picked most often
set_randset_rand(values, weights)Uniform or weighted random selection from a set
set_zipfset_zipf(values, s, v)Zipfian distribution over indices; strong power-law skew toward first items