Interfaces
IRandomService
Provides methods for generating random numbers. It's recommended to use this service instead of Random directly.
Methods
Next
Gets a random number between the minimum and maximum values. Internally uses Random.Next.
Parameters
| Name | Type | Description |
|---|---|---|
| minValue | int | The minimum number. |
| maxValue | int | The maximum number. |
Returns
| Name | Type |
|---|---|
| int | A number between the specified numbers. |
Properties
Random
Gets a random number generator.
Type: Random
GetRandomChance
Gets a random number between 0 and 100. Both inclusive.
Type: int