POV-Ray : Newsgroups : povray.newusers : Rand and animation : Re: Rand and animation Server Time
29 Jul 2024 18:16:06 EDT (-0400)
  Re: Rand and animation  
From: Tim Nikias
Date: 13 May 2005 05:03:36
Message: <42846d68$1@news.povray.org>
What I usually do: seed(frame_number). Note that seed wants an integer, so
using "clock" as seed will get you the value "0" most of the time, and
strangely enough, in that pseudo-stream, the first random number always is
"0".

The second version (seed(x)) will always return the same first random-value,
so no surprise there that all frames will look the same.

Rand is a pseudo-random stream, so the same seed will *always* yield the
same stream of random-numbers.

Regards,
Tim
-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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