We can generate random numbers in an interval x in [a,b] easily if we want to make it uniformely:
rand()*(b-a) + a,
where rand() is a function which can generate a