Wiki
Clone wikiRogueSharp / RogueSharp.Random / IRandom / README
IRandom Interface
An Interface for pseudo-random number generators to implement. Useful when mocking out systems for tests, as the the random number generator can be swapped for a mock implimentation that returns known and expected values
Namespace: RogueSharp.Random
Assembly:
Syntax
publicinterfaceIRandom
The IRandom type exposes the following members.
Methods
Name | Description |
---|---|
Next(Int32) | Gets the next pseudo-random integer between 0 and the specified maxValue inclusive |
Next(Int32, Int32) | Gets the next pseudo-random integer between the specified minValue and maxValue inclusive |
Restore | Restores the state of the pseudo-random number generator based on the specified state parameter |
Save | Saves the current state of the pseudo-random number generator |
Remarks
Pseudo-random number generators are devices that produces a sequence of numbers that meet certain statistical requirements for randomness
See Also
Reference
[6]: 2014-2016 Faron Bracy
Updated