VectorInt.RandomRamp Method

function RandomRamp: TVecInt;

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

Result: stored in self (calling object), returns self for chaining

Remarks:

Fills the calling 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.

Examples
Values[k] :=  k