Distributions#

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

Numeric Distributions#

FunctionSignatureDescription
exp_f PROexp_f(rate, min, max, precision)Exponential decay from min
lognorm_f PROlognorm_f(mu, sigma, min, max, precision)Right-skewed with a long tail
norm_f PROnorm_f(mean, stddev, min, max, precision)Bell curve centered on mean
pareto PROpareto(alpha, max)Continuous power-law, lower values dominate
uniformuniform(min, max)Flat distribution, every value equally likely
zipf PROzipf(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_exp PROset_exp(values, rate)Exponential distribution over indices; lower indices picked most often
set_lognorm PROset_lognorm(values, mu, sigma)Log-normal distribution over indices; right-skewed selection
set_norm PROset_norm(values, mean, stddev)Normal distribution over indices; mean index picked most often
set_pareto PROset_pareto(values, alpha)Pareto distribution over indices; strong skew toward first items
set_randset_rand(values, weights)Uniform or weighted random selection from a set
set_zipf PROset_zipf(values, s, v)Zipfian distribution over indices; strong power-law skew toward first items