Matrix.RandUniform Method

Overload List

#SignatureDescription
1function RandUniform: TMtxVec;The pseudo random sample generator with continuous uniform distribution.
2function RandUniform(aLow: Double; aHigh: Double): TMtxVec;Fills the calling object values with pseudo random samples following the continuous uniform distribution.
3function RandUniform(Seed: Cardinal; aLow: Double; aHigh: Double): TMtxVec;Fills the calling object values with pseudo random samples following the continuous uniform distribution.

Overload 1: function RandUniform: TMtxVec;

The pseudo random sample generator with continuous uniform distribution.

Result: stored in self (calling object), returns self for chaining

Remarks:

Fills the calling object values with pseudo random samples following the continuous uniform distribution using the parameters Low = 0, High = 1. The value for the seed is obtained from the CPU clock.

Examples
var a: Matrix;
begin
    a.Size(10,10,False);
    a.RandUniform(0,5);
end;
See Also: Matrix.RandGauss

Overload 2: function RandUniform(aLow: Double; aHigh: Double): TMtxVec;

Fills the calling object values with pseudo random samples following the continuous uniform distribution.

#NameTypeDescription
1aLowDoublescalar
2aHighDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Use parameters Low and High. The value for the seed is obtained from the CPU clock.

Overload 3: function RandUniform(Seed: Cardinal; aLow: Double; aHigh: Double): TMtxVec;

Fills the calling object values with pseudo random samples following the continuous uniform distribution.

#NameTypeDescription
1SeedCardinal
2aLowDoublescalar
3aHighDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Use parameters Low and High and Seed.