POV-Ray : Newsgroups : povray.newusers : rand not producing random! : Re: rand not producing random! Server Time
8 Jul 2024 01:36:51 EDT (-0400)
  Re: rand not producing random!  
From: geogeo
Date: 7 Jan 2010 14:10:01
Message: <web.4b463117cc0023fa1daa28400@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote:
> "Tim Attwood" <tim### [at] anti-spamcomcastnet> wrote:
> > > What you get with rand is a series of random numbers. Using the same
> > > seed the series is always the same.
> >
> > That's an intentional design feature, if you place a bunch of objects
> > randomly with a certain seed, the image should still be exactly
> > reproducable on any machine running POV.
>
> It's also of great practical use when making an animation--the seed() value,
> being the same for every animation frame, produces the same rand() values per
> frame.  If it didn't, there would be chaos!
>
> Ken

Thanks Stephen, Tim, Kenneth for replies - which explains things.

So is there any way at all to produce a randomised number within POV?


Post a reply to this message

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