TRngStream.RandomUniform Method

void RandomUniform(TMtxVec Dst, Double a, Double b)

Generates an array of samples distributed by Uniform distribution.

#NameTypeDescription
1DstTMtxVecsource TVec or TMtx
2aDoublescalar
3bDoublescalar

Result: stored in self (calling object)

Remarks:

Returns random numbers distributed according to the Uniform probability density function (PDF) as defined here Dew.Math.Units.Probabilities.UniformPDF. 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.