POV-Ray : Newsgroups : povray.general : Random integer : Re: Random integer Server Time
31 Oct 2024 19:39:32 EDT (-0400)
  Re: Random integer  
From: tth
Date: 10 Feb 2016 01:39:16
Message: <56badb14$1@news.povray.org>
On 02/05/2016 08:56 AM, clipka a dit:
> Am 05.02.2016 um 03:49 schrieb Mike Horvath:
>> So should I use int or floor? The result is different for numbers below
>> zero.
>
> In your case you want floor(); otherwise, if your interval includes 0,
> too many random numbers will be mapped to 0, and not enough random
> numbers will be mapped to 0.

*BREAKING NEWS*

Annoucing POVray 3.9, _Now_ with quantum computation !

-- 
*wip* http://la.buvette.org/vrac/essai.avi *wip*


Post a reply to this message

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