POV-Ray : Newsgroups : povray.general : Random integer : Re: Random integer Server Time
22 Jun 2025 08:31:06 EDT (-0400)
  Re: Random integer  
From: clipka
Date: 10 Feb 2016 02:34:59
Message: <56bae823$1@news.povray.org>
Am 10.02.2016 um 07:39 schrieb tth:
> 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 !

Whoops. That should read, "... and not enough random numbers will be
mapped to n."

Sorry, no support for quantum computers in the near future ;)


Post a reply to this message

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