MtxExprInt.RandomRamp Method

function RandomRamp(Len: Integer; aIntPrecision: TIntPrecision): VectorInt;

Fills the resulting vector elements with linear rule and randomly shuffles the indexes.

#NameTypeDescription
1LenIntegerelement count
2aIntPrecisionTIntPrecision

Returns: VectorInt

Remarks:

Fills the resulting vector with a series following the rule:

Values[k] :=  k

and then scrambles the contents of the vector randomly by using the Fisher-Yates shuffle.