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.... |
Home MathPack OpenArrays Procedures and Functions FillRandomUniform | |||||||||
See also: FillArray, FillRandomNormal, FillRandomUniform (Matrix) | |||||||||
FillRandomUniform |
|||||||||
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. Version [9] of the function provides the option to fill an integer array with unique, non-repeating random numbers by setting the paramter DupsAllowed to a FALSE value. Please note that there are some restrictions on the parameters if DupsAllowed is set to FALSE: the maximum size of the array is limited to 1000000 entries and the range of the random numbers must not exceed 1000000. The function returns the following error codes: 0 ... everything is OK
|