Truncated Normal Sampling
Random numbers from truncated univariate normal.
trRnorm(n, mu = 0, sd = 1, a = -Inf, b = Inf)
n
: The number of points to sample.mu
: The mean of the distribution.sd
: The standard deviation.a
: The lower truncation point.b
: The upper truncation point.Useful links