A bounded version of rnorm
rnorm_bounded(n, mean = 0, sd = 1, min = -Inf, max = Inf)Generates values with rnorm, bounded by [min, max]
rnorm_bounded(10)
#> [1] 1.37627460 -0.91130111 -0.03605439 0.39633588 0.42502199 0.65913344
#> [7] 0.97253323 0.38315597 0.76116842 0.11510152