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
|