You are here: Symbol Reference > MtxExprInt Namespace > Classes > VectorInt Record > public > VectorInt.RandomRamp Method
MtxVec VCL
ContentsIndex
PreviousUpNext
VectorInt.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!