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....



FillRandomUniform


Unit:SDL_openarrays
Class: none
Declaration: [1] function FillRandomUniform (var Arr: TIntArray; RangeLow, RangeHigh: integer): integer;
[2] function FillRandomUniform (var Arr: TInt2DArray; RangeLow, RangeHigh: integer): integer;
[3] function FillRandomUniform (var Arr: TInt3DArray; RangeLow, RangeHigh: integer): integer;
[4] function FillRandomUniform (var Arr: TInt4DArray; RangeLow, RangeHigh: integer): integer;
[5] function FillRandomUniform (var Arr: TDoubleArray; RangeLow, RangeHigh: double): integer;
[6] function FillRandomUniform (var Arr: TDouble2DArray; RangeLow, RangeHigh: double): integer;
[7] function FillRandomUniform (var Arr: TDouble3DArray; RangeLow, RangeHigh: double): integer;
[8] function FillRandomUniform (var Arr: TDouble4DArray; RangeLow, RangeHigh: double): integer;

The function FillRandomUniform fills every cell of the given array Arr with a random number with uniform distribution. The generated random numbers are in the range from RangeLow) to RangeHigh).

The function returns the following error codes:

 0 ... everything is OK
-1 ... the matrix Arr has zero size
-2 ... RangeLow is greater than RangeHigh



Last Update: 2017-Nov-25