Sets the range for this generator to the specifed lower and upper bounds.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public RandGenUniform SetRange(
	double lowerBound,
	double upperBound
)
Visual Basic (Declaration)
Public Function SetRange ( _
	lowerBound As Double, _
	upperBound As Double _
) As RandGenUniform
Visual C++
public:
RandGenUniform^ SetRange(
	double lowerBound, 
	double upperBound
)

Parameters

lowerBound
Type: System..::.Double
The lower bound.
upperBound
Type: System..::.Double
The upper bound.

Return Value

This random number generator.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the upper and lower bounds are equal.

See Also