POV-Ray : Newsgroups : povray.general : Feature suggestion: random streams : Re: Feature suggestion: random streams Server Time
31 Jul 2024 22:15:04 EDT (-0400)
  Re: Feature suggestion: random streams  
From: Charles C
Date: 19 Jul 2006 00:20:01
Message: <web.44bdb2d0aeda8621200a56120@news.povray.org>
If you just want it to be different each time you could write a macro to
write and next time read-back a single random float in a file.    That
number is your new seed which'll be different each time...

Brian Vanderburg II <bri### [at] yahoocom> wrote:
> I accidentally posted this under povray.tools.general, I think, sorry.
>
> I think would be useful if there was a way to generate different random
> streams each time a render is run without changing the seed value each
> time.  Perhaps something where:
>
> #declare r1 = seed(100);
> #declare r2 = rseed();
>
> Or perhaps no arguments to 'seed' means to use a random initial value
> generated from the current time or entropy file or /dev/random, etc.


Post a reply to this message

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