You are here: Symbol Reference > MtxVecInt Namespace > Classes > TVecInt Class > public > TVecInt.RandomRamp Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TVecInt.RandomRamp Method

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

Pascal
function RandomRamp: TVecInt; overload;

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.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!