TVecSmallInt::RandomRamp Method

TVecInt *RandomRamp();

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

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.

Declared in Dew::Math::TVecInt · Dew.Math/MtxVecInt.h · Cross-compiler