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: none
Declaration: [1] function ShuffleArray (var Data: TDoubleArray): integer;
[2] function ShuffleArray (var Data: TIntArray): integer;

The method ShuffleArray randomly exchanges the values of the array Data. The function provides the following return codes:
 0 ... everything is OK
-1 ... length of Data array must be greater than 1

Last Update: 2020-Aug-23