Wiki
Clone wikiRogueSharp / RogueSharp.Random / KnownSeriesRandom / _ctor
KnownSeriesRandom Constructor
Constructs a new integer generator with the specified series of integers in an array. When the Next method is called on this generator it will return the first integer in the series, followed by the next integer and so on until it reaches the end of the array. If the Next method is called once it is at the end of the array, it will start back over at the beginning.
Namespace: RogueSharp.Random
Assembly:
Syntax
public KnownSeriesRandom( params int[] series )
Parameters
series
Type: SystemInt32
A known series of integers that will be returned in order from this generator
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown on null series |
See Also
Reference
KnownSeriesRandom Class
RogueSharp.Random Namespace
[3]: 2014-2016 Faron Bracy
Updated