Generate truncated random variates using CDF method instead of rejection sampling.