Create a uniformly-distributed variable on the interval
[lower, upper].
Usage
uniform(lower = 0, upper = 1, dim = NULL)
Arguments
- lower
Lower bound (numeric).
- upper
Upper bound (numeric).
- dim
Integer vector of dimensions (default scalar).
Examples
if (FALSE) { # \dontrun{
p <- uniform(0, 1)
} # }