Click or drag to resize

GeneratorUniformRandomInt Method (Int32)

Makes a generator that 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
)

Parameters

upperLimitExcluded
Type: SystemInt32
The upper limit (excluded).

Return Value

Type: IGeneratorInt32
IGenerator<System.Int32>.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionupperLimitExcludedis not positive.
See Also