Overview
Any numeric field that varies run-to-run — processing times, arrival rates, entity attribute values, resource requirements — can be drawn from a probability distribution instead of a fixed number. Distributions let a model reflect real-world variability: cycle times that vary, demand that clusters and lulls, processing durations with realistic long tails. Distributions in ProDex are JSON objects, not DSL function calls. You don’t writeNORMAL(60, 10) in a field — you write a distribution object:
"type": "normal") and its shape are static configuration. The parameter values inside the object can themselves be DSL expressions, which is how you make variability depend on simulation state or entity attributes.
Supported Distributions
fixed
A deterministic value. Technically not a distribution, but included for consistency so every numeric field uses the same object form.
normal
The classic bell curve — symmetric around a mean, spread controlled by standard deviation.
lognormal or gamma to avoid negative samples.
exponential
Time between memoryless events. Higher concentration near zero, long tail.
beta parameter is the mean (equivalently, 1 over the rate). Despite the name, it’s the expected value of a sample.
Use for: inter-arrival times in Poisson processes (random arrivals), time until a random failure, time until a random event with constant hazard rate.
uniform
Every value between min and max is equally likely. Flat distribution.
lognormal
A log-transform of a normal distribution — right-skewed, strictly positive, with a long right tail.
mu and sigma are the mean and standard deviation of the underlying normal distribution (before the log transform), not of the lognormal itself.
Use for: service times, task durations, and any quantity that’s positive, has a clear typical value, and occasionally has long outliers. Many real-world “how long does this take?” distributions are well-modeled by lognormal.
weibull
Flexible distribution that can model increasing, constant, or decreasing hazard rates depending on its shape parameter.
triangular
A simple three-point distribution: min, mode, max.
erlang
Sum of shape independent exponential random variables, where shape must be a positive integer.
beta
Distribution on the interval [0, 1], flexibly shaped by two parameters. The second parameter is named beta_param to avoid clashing with the distribution type name.
alpha=1, beta_param=1) through bell-like shapes to heavily skewed.
gamma
General-purpose continuous distribution for positive quantities, controlled by two parameters.
alpha is the shape parameter; beta is the rate (or scale, depending on parameterization — the platform’s convention defines which).
Use for: positive quantities with a more flexible shape than exponential or lognormal. Service times, waiting times, and queueing phenomena.
Choosing a Distribution
If you have real data, fit a distribution to it. If you don’t:| You know… | Use |
|---|---|
| The exact value | fixed |
| Mean and symmetric variability, value can be any sign | normal |
| Only the bounds, no reason to favor any region | uniform |
| Mean only, memoryless event timing | exponential |
| Three-point estimate (min/mode/max) | triangular |
| Positive, skewed right, one “typical” value with long tail | lognormal or gamma |
| Proportion / probability with variability | beta |
| Time-to-failure with a hazard rate that changes over time | weibull |
| Sum of exponential stages | erlang |
triangular is a pragmatic default. For arrival patterns, exponential is the standard start. For distribution-sensitive work (queue analysis, reliability), fit to real data.
Parameterizing with DSL Expressions
Distribution parameters aren’t limited to literals. Each parameter field can be a DSL expression that references constants, state variables, entity attributes (where the context allows), or other expressions:Tips
- Draw from the distribution at use time, not at entity creation time. For processing times especially, sample the distribution when the Process runs — not as an entity attribute set at the Source. This keeps the sample close to the state it should depend on.
- Normal isn’t always the answer. It’s familiar but it can produce negative samples. For strictly positive quantities, prefer
lognormal,gamma, or truncated alternatives. - Check parameter names carefully. Different distributions use different parameter names even when the mathematical concept is similar (e.g.,
betais the mean ofexponential, but also the second shape parameter ofgamma). The JSON form is the source of truth. - Match distribution to data when possible. A fitted distribution on real MES cycle times will give much more realistic results than an assumed parametric one.
- Use
fixedto simplify initial modeling. Start with fixed values to verify the structure, then swap in distributions once the model is correct.

