POV-Ray : Newsgroups : povray.off-topic : Coin game : Re: Coin game Server Time
6 Sep 2024 17:23:12 EDT (-0400)
  Re: Coin game  
From: scott
Date: 9 Jan 2009 09:07:04
Message: <49675a08$1@news.povray.org>
>  I tried it myself with the program at the end of this post, and got a
> bit different of a result. The program printed:

I just found out that Windows includes a better RNG anyway, you call it with 
the API function CryptGenRandom.  More details here:

http://en.wikipedia.org/wiki/CryptGenRandom

It's a fair bit slower than rand(), but by making use of every bit returned 
(rather than just testing the LSB) it is comparable.


Post a reply to this message

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