POV-Ray : Newsgroups : povray.advanced-users : Random rotation don't work ? : Re: Random rotation don't work ? Server Time
29 Jul 2024 14:14:21 EDT (-0400)
  Re: Random rotation don't work ?  
From:
Date: 6 Mar 2002 08:20:42
Message: <3c8617aa@news.povray.org>
Hi,

seed is just an initialisation of the random-number-generator.
to create a random number use following structure:

#local R1 = seed(45345);
// the number has no further meaning. you may use anything
// note that different randoms generated from the same seed value, produce
synchronously the same numbers

#local random = rand(R1);
// this is the actual random number

// to rotate something you may use:
// rotate <rand(R1), rand(R1), rand(R1)>


regards
SY


Post a reply to this message

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