The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: TMatrix, TMat3D
Declaration: [1] procedure FillRandomUniform (RangeLow, RangeHigh: double); { classes TMatrix and TMat3D }
[2] procedure FillRandomUniform (LowCol, HighCol, LowRow, HighRow: integer; RangeLow, RangeHigh: double); { class TMatrix only }

The method FillRandomUniform sets all elements of the matrix (version [1]) to uniformly distributed random values in the range between RangeLow and RangeHigh. Version [2] is only available for TMatrix and allows filling a particular rectangular region of the matrix by specifying the lower and upper columns and rows of the area to be filled (parameters LowCol, HighCol, LowRow and HighRow).

Hint: Setting both the low and high parameter of a dimension (i.e. LowCol and HighCol) to zero values forces the method to use all elements of that dimension.

Last Update: 2023-Feb-10