Rev Language Reference


dnUniformInteger - Uniform Integer Distribution

This distribution creates a stochastic node drawing a random integer from a uniform distribution.

Aliases

  • dnUnifInt

Usage

dnUniformInteger(Integer lower, Integer upper)

Arguments

lower : Integer (pass by const reference)
The lower bound.
upper : Integer (pass by const reference)
The upper bound.

Domain Type

Details

This distribution will randomly draw an integer using uniform distribution from a minimum to maximum integer set in the first and second arguments. This function can also be called using the alias 'dnUnifInt'.

Example

# Create and assign stochastic node
x ~ dnUniformInteger(1, 10)

See Also