Click or drag to resize

RandGenUniform(Double, Double, RandomNumberGeneratorUniformRandomNumber) Constructor

Constructs a random number generator using the given delegate as the underlying uniform random number generator. The generated deviates will follow a uniform distribution with the specified lower and upper bounds.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public RandGenUniform(
	double lowerBound,
	double upperBound,
	RandomNumberGeneratorUniformRandomNumber rand
)

Parameters

lowerBound  Double
The lower bound.
upperBound  Double
The upper bound.
rand  RandomNumberGeneratorUniformRandomNumber
A delegate method that returns a uniform random deviate between zero and one.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if the lower and upper bounds are equal.
See Also