Produces random numbers from the Mersenne Twister
| C# |
public class TCODRandom : IDisposable
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| TCODRandom()()() |
Create a new instance of a random number generator.
| |
| TCODRandom(UInt32) |
Create new instance of a random number generator with a starting seed.
| |
| Dispose()()() |
Destroy unmanaged random number generator
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetIntFromByteArray(Int32, Int32, String) |
Deterministly obtain a random number based upon a string seed
| |
| GetRandomFloat(Double, Double) |
Obtain a random floating point number in a given range
| |
| GetRandomFloat(Single, Single) |
Obtain a random floating point number in a given range
| |
| GetRandomInt(Int32, Int32) |
Obtain a random integer in a given range
| |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString()()() | (Inherited from Object.) |
| Object | |
| TCODRandom | |