POV-Ray : Newsgroups : povray.newusers : rand not producing random! : Re: rand not producing random! Server Time
8 Jul 2024 03:03:48 EDT (-0400)
  Re: rand not producing random!  
From: Warp
Date: 7 Jan 2010 14:54:24
Message: <4b463bf0@news.povray.org>
geogeo <geo### [at] mecolcouk> wrote:
> Thanks for info on #debug, had not noticed that feature, only been at this a few
> days. But how do I get it to output variables? The following #debug fails:

> #declare R1 = seed(1);
> #declare n = rand(R1);
> #debug "rand out = ",str(n),"\n";

  #debug takes one single string as parameter. To build a string made of
several components, you use the concat() function:

#debug concat("rand out = ", str(n, 0, -1), "\n")

-- 
                                                          - Warp


Post a reply to this message

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