void RandomBernoulli(TMtxVecInt *Dst, const double p);
Generates an array of integer samples distributed by Bernoulli distribution.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TMtxVecInt * | |
| 2 | p | const double |
Remarks:
Returns random numbers distributed according to the Bernoulli distribution. The number of samples generated is defined with the Dst.Length parameter. Dst is automatically resized to store 32bit integers, if needed.
Declared in Dew::Math::TRngStream · Dew.Math/RndGenerators.h · Cross-compiler