powered by
Generates a set of Uniformly distributed values.
r_unif(min = 0, max = 1, ..., n = default_n(min, max), .seed = NULL)
vectors of lower and upper limits of the distribution
Unused
number of observations to generate. The default_n() function will provide a default value within context
default_n()
One of the following:
NULL (default) will not change the current seed. This is the usual case for generating random numbers.
A numeric value. This will be used to set the seed before generating the random numbers. This seed will be stored with the results.
TRUE. A random seed value will be generated and set as the seed before the results are generated. Again, this will be stored with the results.
To extract the random seed from a previously generated set of values, use pull_seed()
pull_seed()
A numeric vector of length n
n
# NOT RUN { set_n(5) r_unif() r_unif(1:5, 6:10) r_unif(1:5, 10) r_unif(n = 10) # }
Run the code above in your browser using DataLab