POV-Ray : Newsgroups : povray.newusers : rand not producing random! : rand not producing random! Server Time
8 Jul 2024 02:17:06 EDT (-0400)
  rand not producing random!  
From: geogeo
Date: 6 Jan 2010 15:45:00
Message: <web.4b44f58178f10047a77823820@news.povray.org>
I am using a rand generated value 'n' but the result is always the same. I've
put in a text trace to output the value 'n' as follows:

#declare R1 = seed(1);
#declare n = rand(R1);

//....//
text {
    ttf "timrom.ttf" str(n,0,3) 0.3, 0
    pigment { Red }
    translate<0,2,0>
  }

With the above seed the result is alwways 0.422. What am I missing here?

geo


Post a reply to this message

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