POV-Ray : Newsgroups : povray.general : Smooth random : Re: Smooth random Server Time
10 Aug 2024 23:21:15 EDT (-0400)
  Re: Smooth random  
From: Margus Ramst
Date: 11 Oct 1999 09:58:53
Message: <3801ECE8.15BDCAA9@peak.edu.ee>
Nieminen Juha wrote:
> 
>   If you mean a linear distribution, that's pretty simple:
> 

AFAIK, this is normal distribution.
I made two little macros that do normal distribution for floats and 3D vectors
(it's trivial to extend it to nD vectors). They take the mean, the maximum
deviation and a predeclared seed as parameters.
The macros are available from the Macroscope (rand_ext and v_rand_ext)

Margus


Post a reply to this message

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