The function provides an alternative implementation of random uniform distribution sampling using R's rng scope.
Arguments
- n
An
unsigned integerdenoting the number of realizations to generate.- min
A
doubleindicating the minimum \(a\) value in the uniform's interval \(\left[a,b\right]\)- max
A
doubleindicating the maximum \(b\) value in the uniform's interval \(\left[a,b\right]\)
Examples
set.seed(134)
b = runif_r(10)