Random numbers in C++
Posted: Wed Feb 16, 2011 9:38 am
We have to create random numbers between 0 and 1 in one of our projects. To create a statistical distribution between these numbers, the generator is called with each calculation cycle. The problem is that this distribution doesn't turn out very good, because the generator uses CPU ticks as a seed value and that's way too fast for our approach.
Maybe someone can point us to an alternative random number generator or another solution? Any idea is highly appreciated. Thanks a lot in advance.
Maybe someone can point us to an alternative random number generator or another solution? Any idea is highly appreciated. Thanks a lot in advance.