Constructs a random number generator using a RandGenMTest as the underlying uniform random number generator. The generated deviates will follow a Geometric distribution with probability of success
CopyC#
p
.

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

Syntax

C#
public RandGenGeometric(
	double p
)
Visual Basic (Declaration)
Public Sub New ( _
	p As Double _
)
Visual C++
public:
RandGenGeometric(
	double p
)

Parameters

p
Type: System..::.Double
Probability of success.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown of the probability
CopyC#
p
is less than zero or greater than one.

See Also