lab2 Generation of Random Variates Implementation