POV-Ray : Newsgroups : povray.general : rand question : Re: rand question Server Time
5 Aug 2024 02:15:39 EDT (-0400)
  Re: rand question  
From: Tom Melly
Date: 12 Feb 2003 05:06:09
Message: <3e4a1c91@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:3e497ebc@news.povray.org...
> John VanSickle <evi### [at] hotmailcom> wrote:
> > #while(sA!=sB)
>
>   Are you completely sure that the same number will not appear twice
> in the stream without looping back to the beginning?
>   Naturally this might be so, but if the random number generator is made
> even with the slightest quality, the same number can repeat many times
> in the stream before it loops over.

Once I'd worked out what the code did, the same thought occured - is there
something in the way the stream is generated that makes that impossible? For
example, that a particular number is always followed by another fixed number?


Post a reply to this message

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