RandUnif: Sample from a uniform distribution, with random lower and...

Description Usage Arguments Value Examples

View source: R/RandUnif.R

Description

Sample from a uniform distribution, with random lower and upper bounds

Usage

1
RandUnif(n = 50, a = c(10, 20), b = c(25, 50))

Arguments

n

scalar value: Number of observations to draw (default = 50)

a

vector containing limits of lower bound of distribution

b

vector containing limits of upper bound of distribution

Value

vector of observations, quantitative values

Examples

1
2
3
4
x1 <- RandUnif() # use defaults
x2 <- RandUnif(25,c(1,5),c(10,15)) # draw 25 observations within
     lower limit set randomly from 1-5, and the upper limit set
     randomly from 10-15

dco61/isteahMAT104 documentation built on Jan. 2, 2022, 2:24 a.m.