Appearance
Next Method
Definition
- Namespace:
JASE - Assembly:
JASE.dll
Overloads
| Name | Description |
|---|---|
int Next(int max) | Returns a nonnegative random number less than the specified maximum. |
int Next(int min, int max) | Returns a random number within a specified range. |
int Next(int max)
csharp
int Next(int max)Returns a nonnegative random number less than the specified maximum.
Parameters
| Name | Description |
|---|---|
max | The exclusive upper bound of the random number to be generated. |
Returns
32-bit signed integer greater than or equal to zero, and less than maxValue; that is, the range of return values ordinarily includes zero but not maxValue.
int Next(int min, int max)
csharp
int Next(int min, int max)Returns a random number within a specified range.
Parameters
| Name | Description |
|---|---|
max | The exclusive upper bound of the random number returned. max must be greater than or equal to min. |
min | The inclusive lower bound of the random number returned |
Returns
A 32-bit signed integer greater than or equal to minValue and less than maxValue; that is, the range of return values includes minValue but not maxValue. If min equals max, min is returned.