|
|
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
|
|
|
|
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
|
|