R/rEXP.R

Defines functions rEXP

Documented in rEXP

rEXP <-
function(n, alpha=1)
{
if (is.null(n)) stop("sample size must be specified")
if (round(n) != n | n <= 0) stop("sample size must be a positive integer")
if(alpha<0) stop("alpha must be less than 0")
qEXP(runif(n), alpha)
}

Try the gentransmuted package in your browser

Any scripts or data that you put into this service are public.

gentransmuted documentation built on Aug. 8, 2025, 7:21 p.m.