a very large interval of rundom numbers
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:
(total=14709200 and MI=1, 1/14709200=6.79*10-8)
value=((MI + rand() % (int)(total-MI))/total);
This run, but there are many repeated or similar numbers. Anybody have one idea to improve this rundom numbers?