POV-Ray : Newsgroups : povray.binaries.images : Toward a less-lame rand() function. : Re: Toward a less-lame rand() function. Server Time
4 Nov 2024 13:12:44 EST (-0500)
  Re: Toward a less-lame rand() function.  
From: gregjohn
Date: 17 May 2009 08:10:00
Message: <web.4a0ffe3d2a89ae6d72e64ba0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
>
>   seed(frame_number) is a perfectly good way of using different random
> streams at each frame. The quality of the randomness will neither
> increase nor decrease by doing that. There will be no obvious pattern
> caused by doing this.
>

Unless I misunderstand what you're saying, I believe the exact opposite. I first
discovered the problem when using seed(frame_number) and saw a predictable,
linearly monotonous effect in rand().  I believe that's also exactly what I
showed in my red dot pattern.  The "n" is a placeholder for what you see across
multiple frame_number 's .


Post a reply to this message

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