Excellent! but one problem with it is that since rand creates for a number with several several decimal spaces, I guess the system isn't given much time to increase the number by a good margin.
So when I test it out the number increases by something like 0.00002xxxxx every couple of seconds. But what I need it for, it needs to be a lot faster.
Is there a way to have it so rand() only creates a number with 3-4 decimal spaces?
Keep in mind that floating point is not exact. Depending upon your ranges, it is
very possible to get a random number that isn't the exact number of decimal
places you want.