Wiki
Clone wikiRogueSharp / RogueSharp.Random / KnownSeriesRandom / Next
KnownSeriesRandomNext Method (Int32)
Return the first integer in the series that was specified when this generator was constructed, 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 int Next( int maxValue )
Parameters
maxValue
Type: SystemInt32
Inclusive maximum result
Return Value
Type: Int32
The next integer in the series specified upon construction of this class
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the Next integer in the series for this generator is not between 0 and the specified maxValue inclusive |
See Also
Reference
KnownSeriesRandom Class
RogueSharp.Random Namespace
[4]: 2014-2016 Faron Bracy
Updated