TSparseMtx.RandUniform Method

Overload List

#SignatureDescription
1TMtxVec RandUniformThe pseudo random sample generator with continuous uniform distribution.
2TMtxVec RandUniform(Double aLow, Double aHigh)Fills the calling object values with pseudo random samples following the continuous uniform distribution.
3TMtxVec RandUniform(UInt32 Seed, Double aLow, Double aHigh)Fills the calling object values with pseudo random samples following the continuous uniform distribution.

Overload 1: TMtxVec RandUniform

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
Matrix a;
a.Size(10,10,false);
a.RandUniform(0,5);

Overload 2: TMtxVec RandUniform(Double aLow, Double aHigh)

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:

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

Overload 3: TMtxVec RandUniform(UInt32 Seed, Double aLow, Double aHigh)

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

#NameTypeDescription
1SeedUInt32
2aLowDoublescalar
3aHighDoublescalar

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

Remarks:

The algorithm uses parameters Low and High and Seed.