POV-Ray : Newsgroups : povray.newusers : Random Numbers : Re: Random Numbers Server Time
30 Jul 2024 18:24:32 EDT (-0400)
  Re: Random Numbers  
From: Christopher James Huff
Date: 30 Oct 2003 20:45:28
Message: <cjameshuff-127AE2.20433430102003@netplex.aussie.org>
In article <mat### [at] netplexaussieorg>,
 Matthew Pace <mat### [at] lycoscom> wrote:

> Ok, perfect.  Thanks a lot, that sums up all I needed to know.  One last 
> question though, is there a way to seed the file with a time based 
> variable, like in programming?

You can save seeds to a file. Seed your streams from that file and write 
new seeds. Unfortunately, there's nothing like a date function in the 
official version that can be used to seed the random number streams.

However, you most likely just want to output a large number of 
variations of something. In this case, you would probably be best off 
using frame_number to create the seed and rendering an animation. This 
way, you get the same numbers each time, making debugging and tweaking 
easier, but you also get a large number of seeds. If you want a 
different set of seeds, change the method you use to create the seed 
from frame_number.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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