IMath.RndSample

Syntax

RndSample(N: Integer; M: Integer): Array;

Parameters

N. Array length.

M. Quantity of numbers for sampling.

Description

The RndSample method performs pseudorandom sampling from the array.

Comments

The value of the M parameter must not exceed the value of the N parameter.

Values of the M and N parameters must not be less than 1.

Example

The property use is given in the example for IMath.RndPermutation.

See also:

IMath