StatRandom.RandomTriangular Method

procedure RandomTriangular(const a: Double; const b: Double; const c: Double; const results: TDenseMtxVec; Seed: Integer);

Triangular distribution random generator.

#NameTypeDescription
1aDouble
2bDouble
3cDouble
4resultsTDenseMtxVec
5SeedInteger

Result: stored in self (calling object)

Remarks:

This routine generates Result.Length pseudo random numbers, using the triangular distribution with parameters a,b and c. The random numbers are stored in the Results vector. An exception is raised if Result vector is complex.

Examples
Uses MtxExpr, StatRandom;
procedure Example;
var Res: Vector;
begin
    Res.Size(2000);
    RandomTriangular(2.2, 8.0, 5.5, r);
end;