MtxExprInt::RandomRamp Function

VectorInt RandomRamp(int Len, TIntPrecision aIntPrecision);

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

#NameTypeDescription
1Lenint
2aIntPrecisionTIntPrecision
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.

Declared in Dew::Math::Units::MtxExprInt · Dew.Math/Units.MtxExprInt.h · Cross-compiler