TRngStream.RandomGaussian Method

procedure RandomGaussian(const Dst: TMtxVec; const mu: Double; const sigma: Double; const Method: TGaussRandMethod);

Generates an array of samples distributed by Gaussian distribution.

#NameTypeDescription
1DstTMtxVec
2muDouble
3sigmaDouble
4MethodTGaussRandMethod

Result: stored in self (calling object)

Remarks:

Returns random numbers distributed according to the Gaussian probability density function (PDF) as defined here Probabilities.NormalPDF. The number of samples generated is defined with the Dst.Length parameter. The result is an array which can be accessed via Dst.Values property.