 | RandGenMTwistFill(Int32, Int32, Int32, Boolean) Method |
Fills the given array of integers with random values.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic void Fill(
int[] v,
int minValue,
int maxValue,
bool duplicates
)
Public Sub Fill (
v As Integer(),
minValue As Integer,
maxValue As Integer,
duplicates As Boolean
)
public:
void Fill(
array<int>^ v,
int minValue,
int maxValue,
bool duplicates
)
member Fill :
v : int[] *
minValue : int *
maxValue : int *
duplicates : bool -> unit
Parameters
- v Int32
- An array.
- minValue Int32
- The lower bound.
- maxValue Int32
- The upper bound.
- duplicates Boolean
- Allow duplicates.
ExceptionsException | Condition |
---|
InvalidArgumentException | Thrown if duplicates
is false and the length of v is greater than the range of numbers desired.
|
Remarksv must be initialized before calling this method.
See Also