POV-Ray : Newsgroups : povray.newusers : Need rand() help : Re: Need rand() help Server Time
29 Jul 2024 02:26:14 EDT (-0400)
  Re: Need rand() help  
From: George J  Wallace
Date: 8 Jan 2007 23:32:40
Message: <45a31ae8$1@news.povray.org>
Thanks for the fast reply.  Is the value plugged into the rand() statement
actually a subscript to a value in the random number stream?  If yes, then
how long is the random number stream (how many times can I tap into the same
stream)? TIA, again...gjw
"Slime" <fak### [at] emailaddress> wrote in message
news:45a3143c@news.povray.org...
> #declare colorSeed = seed(5454353); // (use any number you want, change it
> to change the randomness)
> // rand(...) returns a random number between 0 and 1.
> #declare myColor = < rand(colorSeed), rand(colorSeed), rand(colorSeed) >;
>
>  - Slime
>  [ http://www.slimeland.com/ ]
>
>


Post a reply to this message

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