POV-Ray : Newsgroups : povray.newusers : question about seed() and random() : Re: question about seed() and random() Server Time
6 Sep 2024 04:18:48 EDT (-0400)
  Re: question about seed() and random()  
From: Ken
Date: 26 Feb 1999 13:14:12
Message: <36D6E3E9.47BF6F24@pacbell.net>
BC wrote:

> It will give you different values in each time through the loop, but each
> time you run the file, you will get the same sequence of values. AFAIK(As
> far as I know) there is no way out of this within POV, it is the nature of
> "random" numbers on computers that they are not random!.
> 
> On your idea of using the clock, good thought! I was thinking you could
> write a tiny batch file that places the time in a text file, then read this
> in POVRay, and base the seed on it. Just get POVRay to call it
> "pre-render". I haven't tried this (I usually want the predictable
> behaviour) but it should work if you can get the time in a format that a
> POVRay read statement will swallow. Try getting the batch file to put it in
> quotes, then POVRay will read it as a string and you can decipher it.
> 
> Good Luck
> 
> Gordon
> <gbe### [at] birdcameroncomau>

  I realized that about 10 minutes after I posted that and sent
a private email to the original poster to that effect. It did
sound good at the time though.

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

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