scott <sco### [at] scott com> wrote:
> (rand()%2) == 0
> to
> rand() <= RAND_MAX/2
The rand() function in most compilers is of extremely poor quality and
should never be used for this type of application. You should always use
a very high-quality RNG with a humongous period.
I used (my C++ version of) the ISAAC RNG, which should be of fairly high
quality.
--
- Warp
Post a reply to this message
|