Click or drag to resize
StdRandomExp Method
Returns a random real number from an exponential distribution with rate lambda (λ).

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static double Exp(
	double lambda
)

Parameters

lambda
Type: SystemDouble
lambda the rate of the exponential distribution

Return Value

Type: Double
a random real number from an exponential distribution with rate lambda
Exceptions
ExceptionCondition
ArgumentExceptionunless lambda > 0.0
See Also