POV-Ray : Newsgroups : povray.general : A quick rand() question... : Re: A quick rand() question... Server Time
31 Jul 2024 04:18:31 EDT (-0400)
  Re: A quick rand() question...  
From: Warp
Date: 22 Oct 2007 16:47:15
Message: <471d0c52@news.povray.org>
Tim Nikias <JUS### [at] gmxnetware> wrote:
> Of course, since it's MegaPOV, the random-stream might be 
> different again, but if/once the Intel-Based POV-Ray for Mac gets 
> released, will the streams be identical?

  POV-Ray uses its own random number generator function (a linear
congruential generator, if you are interested; see wikipedia).
There's no reason why it would give different values in different
systems.

> You may argue that this question is purely scientific, when I use random 
> streams, I'm looking for random-input, so asking how determined it is 
> might be kinda stupid...

  No. Always getting the same stream of numbers every time is very useful
for many purposes.

-- 
                                                          - Warp


Post a reply to this message

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