If we have a general interval [a,b] , we can still use these random number generators through a change of variables \begin{equation*} z=a+(b-a)x, \end{equation*} with x in the interval x\in [0,1] .