Join us for
RADAR: AI Edition

dyngen (version 1.0.5)

runif_subrange: A subrange version of runif

Description

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 generaten` numbers between 2 and 6.

Usage

runif_subrange(n, min, max)

Value

Generates values with runif, bounded by a range drawn from sort(runif(2, min, max)).

Arguments

n

Number of observations

min

Lower limits of the distribution.

max

Upper limits of the distribution.

Examples

Run this code
runif_subrange(20, 0, 10)

Run the code above in your browser using DataLab