Skip to content

SeededNext Method ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.Primitives.dll

Overloads ​

NameDescription
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 ​

NameDescription
maxThe exclusive upper bound of the random number to be generated.
seedSeed 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 ​

NameDescription
maxThe exclusive upper bound of the random number returned. max must be greater than or equal to min.
minThe inclusive lower bound of the random number returned
seedSeed 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 ​

NameDescription
maxThe exclusive upper bound of the random number to be generated.
seedSeed 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 ​

NameDescription
maxThe exclusive upper bound of the random number returned. max must be greater than or equal to min.
minThe inclusive lower bound of the random number returned
seedSeed 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.