POV-Ray : Newsgroups : povray.general : A quick rand() question... : Re: A quick rand() question... Server Time
31 Jul 2024 04:18:00 EDT (-0400)
  Re: A quick rand() question...  
From: Tim Nikias
Date: 22 Oct 2007 18:02:29
Message: <471d1df5$1@news.povray.org>
Warp wrote:
> 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.

Hm, I seem to recall that I once rerendered an image that I made with 
POV 3.1 and rendering it now looks different. But maybe I changed 
something else as well, thus mixing up the stream...

>> 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.

Yup, just need to make sure that you'll actually get the same numbers 
even at a later point. ;-)

Regards,
Tim

-- 
aka "Tim Nikias"
Homepage: <http://www.nolights.de>


Post a reply to this message

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