POV-Ray : Newsgroups : povray.advanced-users : Random number generator needed ! : Re: Random number generator needed ! Server Time
30 Jul 2024 02:28:18 EDT (-0400)
  Re: Random number generator needed !  
From: Wlodzimierz ABX Skiba
Date: 21 Feb 2001 13:13:50
Message: <3a94055e@news.povray.org>
Warp wrote in message <3a93e9f3@news.povray.org>...
>Wlodzimierz ABX Skiba <abx### [at] abxartpl> wrote:
>: multiplication has symetry
>: concatenation hasn't
>
>  Your solution just multiplies I1 with the smallest multiple of 10 that
>is larger or equal to I2 and then adds I2 to the result.
>
>  This is effectively the same as I1*I2+I2, the only difference being that
>instead of multiplying with a the smallest multiple of 10 which is larger
>or equal to I2, we are multplying with the smallest number which is larger
>or equal to I2, which is, of course, I2 itself.
>  Now, I1*I2+I2 = (I1+1)*I2, and by all practical means this probably will
>not give a too different result than just I1*I2.
>
>  That's why I think that I1*I2 will probably give an equally good result
>with less overhead.


there was big misunderstand in my thinking
I thought that
#declare A=seed(0);
#declare B=seed(0);
cause A=B
but I've checked it's not true
and that's why this not work as expected

ABX


Post a reply to this message

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