Skip to content

exponential

Syntax

exponential(value)

Parameters

value
The rate of occurrence used in the distribution.

Returns

Returns a variate of an exponential distribution.

Description

Returns a variate of an exponential distribution.

This distribution produces random numbers where each value represents the interval between two random events that are independent but statistically defined by a constant average rate of occurrence (its lambda, λ).

Examples

The following state will make entering agents collectively wait with an exponential distribution(lambda = 0.1) of individual hourly wait times:

state Test{
    wait(exponential(0.1))
    default(Excluded)
}

See Also