Class SingletonRandom
Static class that contains 1 variable, which is a an RNG instance that is used as the default rng by other features (dice, etc) wherever needed, and can also be used if you need a random number generator for your own code.
Inheritance
System.Object
SingletonRandom
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GoRogue.Random
Assembly: GoRogue.dll
Syntax
public static class SingletonRandom
Fields
| Improve this Doc View SourceDefaultRNG
Settable field that specifies what Troschuetz.Random.IGenerator instance should be considered the default RNG. Defaults to an Troschuetz.Random.Generators.XorShift128Generator with a time-dependent value used as a seed.
Declaration
public static IGenerator DefaultRNG
Field Value
Type | Description |
---|---|
Troschuetz.Random.IGenerator |