POV-Ray : Newsgroups : povray.general : 2Q's: normal & random : Re: A random trick Server Time
12 Aug 2024 21:19:00 EDT (-0400)
  Re: A random trick  
From: Nieminen Mika
Date: 19 Feb 1999 07:14:59
Message: <36cd55c3.0@news.povray.org>
Tim Glover <tgl### [at] nettallycom> wrote:
: Actually, I said "approximate" a normal distribution.  As long 
: as you're adding a finite number of uniform numbers together, 
: you're only approximating a normal distribution.  Lots of numbers 
: just gives a better approximation. My way's approximation is just 
: not quite as good as your's <grin>

  It's a VERY rough approximate, since by adding just two random values
you get a triangle wave distribution. With 3 values it certainly looks a lot
more like a normal distribution.

-- 
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp -*/


Post a reply to this message

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