truncated normal generator is based on the R function
![463_equations.png](https://secure.tutorsglobe.com/CMSImages/463_equations.png)
where mu and sigma are the mean and standard deviation of the normal, lo is the lower truncation point, up is the upper truncation point, and n is the number of random variables desired. For Z ∼ N (0, 1) with truncation (i) -1 3, generate 1000 random variables and compare the histograms with the density functions.