Random Functions
Random results are cached per call site for the current simulation time. Re-evaluating the same equation during an integration step does not draw again; advancing simulation time does.
| Function | Result and edge semantics | Example |
|---|---|---|
BETA(alpha, beta) | Beta-distributed value formed from two gamma draws. Invalid nonpositive shapes collapse through the gamma sampler's safeguards. | BETA(2, 5) |
BINOMIAL(trials, probability) | Number of successes. trials is rounded and clamped to at least 0; probability is clamped to [0, 1]. | BINOMIAL(20, 0.3) |
EXPRND(mean) | Exponential draw; mean is clamped to at least 0. | EXPRND(5) |
GAMMA(shape, scale) | Gamma draw. Nonpositive shape or scale returns 0. | GAMMA(2, 3) |
GEOMETRIC(probability) | Number of trials through the first success. Probability is clamped away from 0; probability 1 returns 1. | GEOMETRIC(0.25) |
LOGISTIC(mean, scale) | Logistic draw mean + scale * log(u / (1-u)). Scale is used as supplied, including negative values. | LOGISTIC(10, 2) |
LOGNORMAL(mu, sigma) | EXP(NORMAL(mu, sigma)); a nonpositive sigma makes the underlying normal draw equal to mu. | LOGNORMAL(0, 0.5) |
LOOKUPRANDOM(a, b, c, ...) | Uniformly chooses one supplied argument. Requires at least one. | LOOKUPRANDOM(10, 20, 30) |
MONTECARLO(probability) | Bernoulli result 1 or 0; probability is clamped to [0, 1]. | MONTECARLO(0.1) |
NEGBINOMIAL(successes, probability) | Failures observed before the requested successes. Successes are rounded and clamped to at least 0; probability is clamped by the sampler. | NEGBINOMIAL(4, 0.5) |
NORMAL(mean, stddev) | Normal draw. A nonpositive standard deviation returns mean. | NORMAL(100, 15) |
POISSON(mean) | Poisson count. Nonpositive mean returns 0. | POISSON(8) |
UNIFORM(min, max) | Uniform draw over the inclusive numeric range. Reversed bounds are reordered; equal bounds return that value. | UNIFORM(0, 1) |
Yano Simulator Help — Version 0.1.0, Build 20260704