StatRandom.RandomCauchy Method

procedure RandomCauchy(const m: Double; const b: Double; const results: TDenseMtxVec; Seed: Integer);

Cauchy distribution random generator.

#NameTypeDescription
1mDouble
2bDouble
3resultsTDenseMtxVec
4SeedInteger

Result: stored in self (calling object)

Remarks:

This routine generates Result.Length pseudo random numbers, using the Cauchy distribution with parameters b and m. 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);
    RandomCauchy(1.2, 0.5, r, -1);
end;