Appearance
SeededNext Method
Definition
- Namespace:
JASE - Assembly:
JASE.Primitives.dll
Overloads
| Name | Description |
|---|---|
int SeededNext(int seed, int max) | Returns a nonnegative random number. |
int SeededNext(long seed, int max) | Returns a nonnegative random number. |
int SeededNext(int seed, int min, int max) | Returns a random number within a specified range. |
int SeededNext(long seed, int min, int max) | Returns a random number within a specified range. |
int SeededNext(int seed, int max)
csharp
int SeededNext(int seed, int max)Returns a nonnegative random number.
Parameters
| Name | Description |
|---|---|
max | The exclusive upper bound of the random number to be generated. |
seed | Seed value for Random class |
Returns
A 32-bit signed integer greater than or equal to zero and less than System.Int32.MaxValue.
int SeededNext(int seed, int min, int max)
csharp
int SeededNext(int seed, 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 |
seed | Seed value for Random class |
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.
int SeededNext(long seed, int max)
csharp
int SeededNext(long seed, int max)Returns a nonnegative random number.
Parameters
| Name | Description |
|---|---|
max | The exclusive upper bound of the random number to be generated. |
seed | Seed value for Random class |
Returns
A 32-bit signed integer greater than or equal to zero and less than System.Int32.MaxValue.
int SeededNext(long seed, int min, int max)
csharp
int SeededNext(long seed, 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 |
seed | Seed value for Random class |
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.