Expand description
Random number generation builtins: set.seed, runif, rnorm, rbinom, sample, etc.
Uses the per-interpreter RNG state via BuiltinContext.
StructsΒ§
- Rnorm
Args π - Random normal deviates.
EnumsΒ§
StaticsΒ§
- __
BUILTIN_ πREG_ TRAIT_ RNORMARGS - __
INTERP_ πREG_ INTERP_ RBETA - __
INTERP_ πREG_ INTERP_ RBINOM - __
INTERP_ πREG_ INTERP_ RCAUCHY - __
INTERP_ πREG_ INTERP_ RCHISQ - __
INTERP_ πREG_ INTERP_ REXP - __
INTERP_ πREG_ INTERP_ RF - __
INTERP_ πREG_ INTERP_ RFRECHET - __
INTERP_ πREG_ INTERP_ RGAMMA - __
INTERP_ πREG_ INTERP_ RGEOM - __
INTERP_ πREG_ INTERP_ RGUMBEL - __
INTERP_ πREG_ INTERP_ RHYPER - __
INTERP_ πREG_ INTERP_ RINVGAUSS - __
INTERP_ πREG_ INTERP_ RLNORM - __
INTERP_ πREG_ INTERP_ RNG_ KIND - __
INTERP_ πREG_ INTERP_ RPARETO - __
INTERP_ πREG_ INTERP_ RPERT - __
INTERP_ πREG_ INTERP_ RPOIS - __
INTERP_ πREG_ INTERP_ RSKEWNORM - __
INTERP_ πREG_ INTERP_ RT - __
INTERP_ πREG_ INTERP_ RTRIANGULAR - __
INTERP_ πREG_ INTERP_ RUNIF - __
INTERP_ πREG_ INTERP_ RWEIBULL - __
INTERP_ πREG_ INTERP_ RZETA - __
INTERP_ πREG_ INTERP_ SAMPLE - __
INTERP_ πREG_ INTERP_ SET_ SEED
FunctionsΒ§
- extract_
n π - Extract a positive integer
nfromargs[0]. - extract_
param π - Extract an optional f64 parameter from named args or positional index.
- interp_
rbeta π - Random beta deviates.
- interp_
rbinom π - Random binomial deviates.
- interp_
rcauchy π - Random Cauchy deviates.
- interp_
rchisq π - Random chi-squared deviates.
- interp_
rexp π - Random exponential deviates.
- interp_
rf π - Random F deviates.
- interp_
rfrechet π - Random Frechet (Type II extreme value) deviates.
- interp_
rgamma π - Random gamma deviates.
- interp_
rgeom π - Random geometric deviates.
- interp_
rgumbel π - Random Gumbel (Type I extreme value) deviates.
- interp_
rhyper π - Random hypergeometric deviates.
- interp_
rinvgauss π - Random inverse Gaussian (Wald) deviates.
- interp_
rlnorm π - Random log-normal deviates.
- interp_
rng_ πkind - Query or set the RNG algorithm.
- interp_
rpareto π - Random Pareto deviates.
- interp_
rpert π - Random PERT deviates.
- interp_
rpois π - Random Poisson deviates.
- interp_
rskewnorm π - Random skew-normal deviates.
- interp_
rt π - Random Studentβs t deviates.
- interp_
rtriangular π - Random triangular deviates.
- interp_
runif π - Random uniform deviates.
- interp_
rweibull π - Random Weibull deviates.
- interp_
rzeta π - Random Zeta deviates.
- interp_
sample π - Random sampling with or without replacement.
- interp_
set_ πseed - Set the random number generator seed for reproducibility.
- require_
param π - Extract a required f64 parameter from named args or positional index.
- weighted_
sample_ πwith_ replacement - Weighted sampling with replacement using cumulative probability + binary search.
- weighted_
sample_ πwithout_ replacement - Weighted sampling without replacement: sequential weighted draws, removing selected items.