runif_rs: Random Variable From a Uniform Distribution
Description
Generate random numbers
from a uniform distribution, with
user-specified population mean and
standard deviation.
Usage
runif_rs(n = 10, min = 0, max = 1, pmean = 0, psd = 1)
Value
A vector of the generated random numbers.
Arguments
n
The number of random numbers
to generate.
min
min for runif.
max
max for runif.
pmean
Population mean.
psd
Population standard
deviation.
Details
First, the user specifies
the parameters, min and max, and the
desired population mean and standard
deviation. Then the random numbers
will be generated and rescaled with
the desired population mean and
standard.