Rcpp random truncated norm
Usage
rcpp_rnorm(mean, sd, min, max)
Arguments
- mean
Double with mean value.
- sd
Double with sd value.
- min, max
Double boundaries of random number.
Details
Draws random number from (truncated) normal distribution using rejection
approach
References
https://www.cplusplus.com/reference/random/normal_distribution/?kw=normal_distribution
How to use time-based seed based on <http://www.cplusplus.com/reference/algorithm/shuffle/>