Click or drag to resize

GeneratorUniformRandomInt Method (Int32, Int32)

Makes a generator hat generates integers uniformly distributed between 0 (included) and the specified limit (excluded).

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IGenerator<int> UniformRandomInt(
	int upperLimitExcluded,
	int seed
)

Parameters

upperLimitExcluded
Type: SystemInt32
The upper limit (excluded).
seed
Type: SystemInt32
The seed to use for the random number generator.

Return Value

Type: IGeneratorInt32
A new generator.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionupperLimitExcludedis not positive.
See Also