POV-Ray : Newsgroups : povray.binaries.images : Help needed for random numbers : Re: Help needed for random numbers Server Time
14 Aug 2024 07:16:51 EDT (-0400)
  Re: Help needed for random numbers  
From: TinCanMan
Date: 14 Nov 2002 15:14:12
Message: <3dd40414@news.povray.org>
"Matt Beighton" <cor### [at] yahoocouk> wrote in message
news:3dd3fddd@news.povray.org...
> out of interest what does the value in seed(value) actually do?is it a
list
> of numbers or a maximum value?

seed(value) just starts a new stream of random numbers.  That way you can
add new things to your scene that use random numbers without affecting the
previous 'random' numbers.

ie. you start one scene placing spheres randomly with seed(val1),  now if
you go back and add random boxes between the placement of spheres using
seed(val2)
if val1=val2 then the spheres will no longer be in the same random spots
that they were at when they were by them selves, if val1<>val2 then the
spheres will still be in the same spot as they were originally.  Two (or
more) separate streams of random numbers.  (BTW the stream of random numbers
for seed(val) will always be the same no matter how many times you run the
scene).  Hope you understand my ramblings :)

-tgq


Post a reply to this message

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