Hi,

I need a lot of random numbers, and her interval must is very large. For example I need generate a numbers between 6.79*10-8 to 1.0 and I want that they are a lot of numbers differents.

I now generate these random numbers with this algorithm:
Code:
srand (time(NULL));
double value;
for (i;i<1000000;i++){
value=((MI + rand() % (int)(total-MI))/total);
}
(total=14709200 and MI=1, 1/14709200=6.79*10-8)
This run, but there are many repeated or similar numbers. Anybody have one idea to improve this rundom numbers?

Thanks.