Class Randomizer
Utility class providing helper methods for working with random numbers.
Inheritance
System.Object
Randomizer
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: osrlib.Utility
Assembly: osrlib.Core.dll
Syntax
public static class Randomizer
Methods
| Improve this Doc View SourceGetRandomInt(Int32, Int32)
Gets a random number between the minimum and maximum value (lower and upper inclusive).
Declaration
public static int GetRandomInt(int minVal, int maxVal)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minVal | The minimum value for the random range (inclusive). |
System.Int32 | maxVal | The maximum value for the random range (inclusive). |
Returns
Type | Description |
---|---|
System.Int32 |