Click or drag to resize

RandomNumberGeneratorDiscreteUniform Method (Int32, Int32)

Draws a sample point from a discrete Uniform distribution defined on the interval having the specified bounds.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public int DiscreteUniform(
	int lowerBound,
	int upperBound
)

Parameters

lowerBound
Type: SystemInt32
The interval lower bound, inclusive.
upperBound
Type: SystemInt32
The interval upper bound, exclusive.

Return Value

Type: Int32
A sample point drawn from the specified discrete Uniform distribution.
Exceptions
ExceptionCondition
ArgumentExceptionupperBound is not greater than lowerBound.
See Also