POV-Ray : Newsgroups : povray.advanced-users : Mandelbrots, Rand, and maybe more... : Re: Mandelbrots, Rand, and maybe more... Server Time
30 Jul 2024 14:16:40 EDT (-0400)
  Re: Mandelbrots, Rand, and maybe more...  
From: Darcy Johnston
Date: 29 May 1999 03:14:25
Message: <374f85c1.0@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote in message
news:374F6CCC.82E06A57@pacbell.net...
> Rand:
>
>   When a value is returned from the rand function is there a range
> it is confined to i.e. 0 - 1,  .1 - 10, or ?
>
> Is the value returned always a fraction of 1, or less than 100 or can be
> anything up to and including 20 billion.

According to the docs:
"The numbers are uniformly distributed, and have values between 0.0 and 1.0,
inclusively."

But I guess with a little massaging of the numbers, you can make it come out
to most any range.

Hope that helps,
Sorry I couldn't help (at least not immediately) with the others.
Darcy
djo### [at] inamecomNOSPAM
http://www.geocities.com/SiliconValley/Sector/4317


Post a reply to this message

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