POV-Ray : Newsgroups : povray.general : But I didn't ask for variable promotion : Re: But I didn't ask for variable promotion Server Time
4 Aug 2024 22:14:16 EDT (-0400)
  Re: But I didn't ask for variable promotion  
From: Thorsten Froehlich
Date: 30 Jan 2003 09:21:23
Message: <3e3934e3$1@news.povray.org>
In article <3e39314b$1@news.povray.org> , "Greg M. Johnson" 
<gregj:-)565### [at] aolcom> wrote:

> // Scene file as follows  uncomment one declaration of rah or the other:
> #declare RRR=seed(123);
>
> #macro ra()
> rand(RRR)-0.5
> #end
>
> #declare n=0;
> #while(n<1000)
>
> // if you uncomment the line below
> // you get what I want
> // #declare rah= 0.9*(rand(RRR)-0.5)*x;
>
> // if you uncomment the line below
> // you get a variable that has x,y,z
> //#declare rah= 0.9*ra()*x;

Of course.  The parenthesis in your macro are missing.  Thus both cases are
not identical.  RTFM.

    Thorsten


Post a reply to this message

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