Generates a set of Uniformly distributed values.
r_unif(min = 0, max = 1, ..., n = default_n(min, max), .seed = NULL)
min, max | vectors of lower and upper limits of the distribution |
---|---|
... | Unused |
n | number of observations to generate. The |
.seed | One of the following:
To extract the random seed from a previously generated set of
values, use |
A numeric vector of length n
#> [1] 0.48457769 0.60384572 0.21268102 0.08015722 0.17985428r_unif(1:5, 6:10)#> [1] 4.974798 4.646017 5.330622 8.460869 8.709769r_unif(1:5, 10)#> [1] 7.873622 8.752798 7.936522 9.690653 5.721459r_unif(n = 10)#> [1] 0.8038033 0.2943441 0.3813734 0.2372413 0.3461421 0.4290002 0.5998603 #> [8] 0.5655163 0.4661924 0.2334880