Click or drag to resize

RandGenTriangular(Double, Double, Double, Int32) Constructor

Constructs a random number generator using a seeded RandGenMTwist as the underlying uniform random number generator. The generated deviates will follow a triangular distribution with the specified lower bound, upper bound, and mode.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public RandGenTriangular(
	double lb,
	double ub,
	double m,
	int seed
)

Parameters

lb  Double
The lower bound.
ub  Double
The upper bound.
m  Double
The mode.
seed  Int32
Random number seed.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if the lower bound, upper bound, and mode are not distinct, or if the mode is not strictly between the lower and upper bounds.
See Also