You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > VectorInt Structure > VectorInt Methods > VectorInt.RandomRamp Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
VectorInt.RandomRamp Method

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

Syntax
C#
Visual Basic
public TVecInt RandomRamp();

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-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!