procedure RandomGeometric(const Dst: TMtxVecInt; const p: Double);
Generates an array of integer samples distributed Geometrically.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TMtxVecInt | |
| 2 | p | Double |
Result: stored in self (calling object)
Remarks:
Returns random numbers distributed according to the Geometric probability density function (PDF) as defined here Probabilities.GeometricPDF. The number of samples generated is defined with the Dst.Length parameter. Dst is automatically resized to store 32bit integers, if needed. The result is an array of integers.