Returns an UNIFORM distribution object that produce random numbers
from a uniform distribution using the runif
function
Usage
new_UNIFORM(p_min, p_max, p_dimnames = "rvar")
Arguments
- p_min
A numeric that represents the lower limit
- p_max
A numeric that represents the upper limit
- p_dimnames
A character that represents the name of the dimension
Value
An object of class DISTRIBUTION
, UNIFORM
Examples
myDistr <- new_UNIFORM(0,1)
myDistr$rfunc(10)
#> rvar
#> 1 0.8558819662
#> 2 0.5403376815
#> 3 0.8734173523
#> 4 0.5155856195
#> 5 0.8694592980
#> 6 0.8565225946
#> 7 0.3456831840
#> 8 0.0001036914
#> 9 0.2051797453
#> 10 0.9452204907