POV-Ray : Newsgroups : povray.documentation.inbuilt : revisiting rand(...) : Re: revisiting rand(...) Server Time
25 Apr 2024 15:24:14 EDT (-0400)
  Re: revisiting rand(...)  
From: Alain
Date: 18 Jul 2018 21:39:52
Message: <5b4febe8$1@news.povray.org>
Le 18-07-18 à 18:55, Kenneth a écrit :
> Alain <kua### [at] videotronca> wrote:
> 
>>
>> If you get scale 0, a warning is generated and the scalling will default
>> to scale 1.
>>
>> So, no error, just a warning.
>>
> 
> That's true; I probably used a poor code example to demonstrate what might occur
> IF rand(...) actually hit 0.0
> 
> 

#declare Something = Value/rand(R);

Crash with divide by zero if rand(R) return zero.


Post a reply to this message

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