 For more on simulating a draw from the truncated normal distribution, see Robert (1995), Lynch (2007) Section 8.1.3 (pages 200–206), Devroye (1986).The MSM package in R has a function, rtnorm, that calculates draws from a truncated normal.The truncnorm package in R also has functions to draw from a truncated normal.