You are here: Symbol Reference > RndGenerators Namespace > Classes > TRngStream Class > public > TRngStream.RandomBernoulli Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TRngStream.RandomBernoulli Method

Generates an array of integer samples distributed by Bernoulli distribution.

Pascal
procedure RandomBernoulli(const Dst: TMtxVecInt; const p: double);

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.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!