POV-Ray : Newsgroups : povray.newusers : question about seed() and random() : question about seed() and random() Server Time
5 Nov 2024 20:20:48 EST (-0500)
  question about seed() and random()  
From: bassompierre laurent
Date: 24 Feb 1999 09:24:57
Message: <36d40bb9.0@news.povray.org>
I'm writing a pov file like this :
...................
#declare Obj=array[5]
#declare Obj[0]=object{Myobject0}
#declare Obj[1]=object{Myobject1}
#declare Obj[2]=object{Myobject2}
#declare Obj[3]=object{Myobject3}
#declare Obj[4]=object{Myobject4}

#declare R=seed(1);
#declare C=1;
#while (C<5)
    object {Obj[int(rand(R)*4) Obj_Mod ....}
    #declare C=C+1;
#end
...................
The question is : will i get the same values for rand(R), each time i render
my file ?


Post a reply to this message

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