IMath.RndSample

Fore Syntax

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

Fore.NET Syntax

RndSample(N: integer; M: integer): System.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.

Fore and Fore.NET Examples

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

See also:

IMath