TRngStream::RandomBinomial Method

void RandomBinomial(TMtxVecInt *Dst, const int n, const double p);

Generates an array of integer samples distributed Binomially.

#NameTypeDescription
1DstTMtxVecInt *
2nconst int
3pconst double
Remarks:

Returns random numbers distributed according to the Binomial probability density function (PDF) as defined here Probabilities::BinomPDF. The number of samples generated is defined with the Dst.Length parameter. The result is an array of integers which can be accessed via Dst.IValues property. Dst is automatically resized to store 32bit integers, if needed.

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