Class RNG
Provides methods for generating cryptographically-strong random numbers.
Inheritance
System.Object
RNG
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public static class RNG
Methods
Next()
Generates a random non-negative number.
Declaration
public static int Next()
Returns
Type | Description |
---|---|
System.Int32 |
Next(Int32)
Generates a random non-negative number less than or equal to max.
Declaration
public static int Next(int max)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | max | The maximum possible value. |
Returns
Type | Description |
---|---|
System.Int32 |
Next(Int32, Int32)
Generates a random non-negative number bigger than or equal to min and less than or equal to max.
Declaration
public static int Next(int min, int max)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | min | The minimum possible value. |
System.Int32 | max | The maximum possible value. |
Returns
Type | Description |
---|---|
System.Int32 |