View source: R/random_generators.R
runif_subrange | R Documentation |
Will generate numbers from a random subrange within the given range.
For example, if [min, max]is set to \[0, 10\], this function could decide to generate
n' numbers between 2 and 6.
runif_subrange(n, min, max)
n |
Number of observations |
min |
Lower limits of the distribution. |
max |
Upper limits of the distribution. |
Generates values with runif, bounded by a range drawn from sort(runif(2, min, max))
.
runif_subrange(20, 0, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.