Fixed gamma distribution to use rnd function for Unif(0,1) deviates.