StatRandom.RandomPoisson Method

procedure RandomPoisson(const lambda: Double; const results: TMtxVecInt; Seed: Integer);

Poisson distribution random generator.

#NameTypeDescription
1lambdaDouble
2resultsTMtxVecInt
3SeedInteger

Result: stored in self (calling object)

Remarks:

This routine generates Result.Length pseudo random numbers, using the Poisson distribution with parameter lambda. The random numbers are stored in the Results vector. An exception is raised if Result vector is complex.

Examples
Uses MtxExprInt, StatRandom;
procedure Example;
var Res: VectorInt;
begin
    Res.Size(2000);
    RandomPoisson(2.31, Res);
end;