Skip to content

uniform

Syntax

uniform(lower, upper)

Parameters

lower
Lower bound of range.
upper
Upper bound of range.

Returns

Returns a variate according to a uniform distribution.

Description

Returns a variate of a uniform distribution with range [lower, upper]. This action is often used to model waiting times.

Examples

The following state will make entering agents collectively wait with a uniform distribution (lower = 1.1, upper = 4.4) of individual hourly wait times:

state Demo {
    wait(uniform(1.1, 4.4))
    default(Excluded)
}

See Also