rdu generates a random sample of size n from a discrete uniform distribution on the interval min to max.

rdu(n, min, max)

Arguments

n

number of observations.

min

lower limit of the distribution.

max

upper limit of the distribution.

Value

A length n numeric vector of realizations from a DU(min, max) distribution.

Examples

N = rdu(n = 50, min = 10000, max = 15000)