In reply to Ksharp.

I think you are referring to the truncated normal distribution, which is mentioned in the post. In the original article,. I explicitly showed how to simulate it by using the inverse CDF method. In the current article, I just used the simple accept-reject method, which is a reasonable choice if you are only truncating a little bit of the tails.