Generates a single random float value in a sum of n uniform distributions from lo to hi .
NRand.new(lo: 0.0, hi: 1.0, n: 0)
Arguments:
| lo |
Lower limit of the output range. |
| hi |
Upper limit of the output range. |
| n |
| n = 1: | Uniform distribution - same as Rand. | | n = 2: | Triangular distribution. | | n = 3: | Smooth hump. |
As n increases, distribution converges towards gaussian. |