MtxExprInt.RandomRamp Method

VectorInt RandomRamp(Int32 Len, TIntPrecision aIntPrecision)

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

#NameTypeDescription
1LenInt32element 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.