POV-Ray : Newsgroups : povray.off-topic : Coin game : Re: Coin game Server Time
6 Sep 2024 17:19:25 EDT (-0400)
  Re: Coin game  
From: Warp
Date: 9 Jan 2009 04:06:26
Message: <49671392@news.povray.org>
scott <sco### [at] scottcom> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.