Generate truncated random variates using CDF method instead of rejection sampling.
Choose between rejection sampling and CDF method for truncated draws.
Merge pull request #243 from brian-j-smith/master

Fix for infinite loops in generating truncated random variates.