VectorInt::RandomRamp Method

TVecInt *RandomRamp() const;

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::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler