POV-Ray : Newsgroups : povray.general : Random integer : Re: Random integer Server Time
11 Jun 2024 12:03:01 EDT (-0400)
  Re: Random integer  
From: clipka
Date: 5 Feb 2016 02:57:10
Message: <56b455d6$1@news.povray.org>
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.


Post a reply to this message

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