TRngStream::RandomGeometric Method

void RandomGeometric(TMtxVecInt *Dst, const double p);

Generates an array of integer samples distributed Geometrically.

#NameTypeDescription
1DstTMtxVecInt *
2pconst double
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.

Declared in Dew::Math::TRngStream · Dew.Math/RndGenerators.h · Cross-compiler