Click or drag to resize

RandomizerNext Method (Int32, Int32)

Returns a random number within a specified range. Cryptographic secure.

Namespace:  Cauldron
Assembly:  Cauldron.Randomizer (in Cauldron.Randomizer.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static int Next(
	int minValue,
	int maxValue
)

Parameters

minValue
Type: SystemInt32
The inclusive lower bound of the random number returned.
maxValue
Type: SystemInt32
The exclusive upper bound of the random number to be generated.maxValue must be greater than or equal to 0.

Return Value

Type: Int32
A random integer value
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionminValue is greater than maxValue
See Also