Click or drag to resize
RandomNextTriangular Method
Generate a pseudorandom number from a triangular distribution on the interval (0,1).

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public virtual double NextTriangular()

Return Value

Type: Double
A double which specifies a pseudorandom number from a triangular distribution on the interval (0,1).
Remarks
The probability density function is f(x) = 4x, for 0 \le x \le .5, and f(x) = 4(1 - 
            x), for .5 \lt x \le 1. NextTriangular uses an inverse CDF technique.
See Also