generate random numbers in range with uniform distribution