R/rand.unif.R

Defines functions rand.unif

Documented in rand.unif

#' Generate Random Uniform Variables
#' 
#' @description
#' Generates pseudo-random variables from a Uniform distribution, using the Wichmannhill.
#' 
#' @param n Number of observations.
#' @param min lower limit of the distribution.
#' @param max upper limit of the distribution.
#' 
#' @author Tyler Hunt \email{tyler@@psychoanalytix.com}
#' 
#' @export

rand.unif<-function(n, min=0, max=1){
  min + (max-min) * replicate( n , wich.hill() )
}
JackStat/CompPack documentation built on May 7, 2019, 10:16 a.m.