StatRandom.RandomExponent Method

procedure RandomExponent(const mu: Double; const results: TDenseMtxVec; Seed: Integer);

Exponent distribution random generator.

#NameTypeDescription
1muDouble
2resultsTDenseMtxVec
3SeedInteger

Result: stored in self (calling object)

Remarks:

This routine generates Result.Length pseudo random numbers, using the exponential distribution with parameter mu. 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);
    RandomExponent(1.23, Res);
end;