POV-Ray : Newsgroups : povray.advanced-users : Random number generator needed ! : Re: Random number generator needed ! Server Time
29 Jul 2024 18:27:59 EDT (-0400)
  Re: Random number generator needed !  
From: Rune
Date: 20 Feb 2001 17:30:41
Message: <3a92f011@news.povray.org>
"Lutz-Peter Hooge" wrote:
> I think an array initialized with random numbers could be
> used for this. Of course it will need to be very large, or
> the numbers will repeat much more often than in a normal
> random numer stream.

At first I thought the array needed would be too large, but wouldn't it work
to make a relative small array, and then use averages of different numbers
from the array?

If 3 numbers from the array were averaged the amount of different numbers
would be array_length^3 and if 8 numbers were averaged it would be ^8 !

Maybe this is the solution?

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

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