POV-Ray : Newsgroups : povray.newusers : rand not producing random! : Re: rand not producing random! Server Time
8 Jul 2024 02:51:29 EDT (-0400)
  Re: rand not producing random!  
From: Kenneth
Date: 7 Jan 2010 02:55:00
Message: <web.4b4591e4cc0023fa65f302820@news.povray.org>
"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


Post a reply to this message

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