POV-Ray : Newsgroups : povray.general : QUESTION: Random Seed deriving from Time? : Re: QUESTION: Random Seed deriving from Time? Server Time
19 Apr 2024 09:46:51 EDT (-0400)
  Re: QUESTION: Random Seed deriving from Time?  
From: clipka
Date: 18 Feb 2018 22:26:02
Message: <5a8a43ca@news.povray.org>
Am 19.02.2018 um 03:57 schrieb dick balaska:
> On 02/18/2018 09:45 PM, Sven Littkowski wrote:
> 
>>
>> I use "now" but the renders still look the same, like the seed would
>> remain the same. I make the renders in intervals of less than a minute.
>> Thus, a seed that changes each second would be nice.
> 
> Instead of changing the seed, how about throw away the first (now-start)
> random numbers? or (now-start)*2

I wouldn't recommend that.

First of all, this would increase parse time on a daily basis.

Second, in any scenario where many random numbers are needed and their
order doesn't matter (such as when randomly placing many objects), this
would be virtually useless as it would only ditch the first few random
numbers and replace them with what would then be the last few random
numbers.

Third, two sequences even from neighboring seeds should diverge
sufficiently after a few couple of values (maybe a dozen), so throwing
away a small fixed count of random numbers should suffice.

That is, unless the seeds only differ in the fractional part (e.g. 471.1
vs. 471.2), in which case the sequences will be completely identical.
But the same goes for the approach you're presenting.


Post a reply to this message

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