Hi everyone,
i need to generate random numbers between two values a & b, where both a and b less than 1.
Example
a random number between a = 0.60 and b = 0.69.
what i am trying to do is in C program
temp_ins = a + (drand48())*(b - a + 0.01);
Is the above correct way to generate the random number between values between a and b that are less than 1 but greater than 0.