runif_by_mean: Generate uniform random numbers for a fixed mean

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/runif_by_mean.R

Description

A function to generate uniform random numbers from a fixed mean

Usage

1

Arguments

mean

Numeric, mean of the uniform random numbers

n

Integer, number of observations to be generated

Details

Sometime it is necessary to generate random numbers with a prespecified mean of the uniform distribution. This function will fullfil the goal

Value

A numeric vector of uniform random numbers

Author(s)

Mohamad S. Hasan, shakilmohamad7@gmail.com

See Also

scale runif

Examples

1
2
x = runif_by_mean(mean = 3, n = 100)
summary(x)

mshasan/OPWpaper1 documentation built on Feb. 22, 2021, 10:22 a.m.