Click or drag to resize
StdRandomUniform Method (Double, Double)
Returns a random real number uniformly in [a, b).

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static double Uniform(
	double a,
	double b
)

Parameters

a
Type: SystemDouble
a the left endpoint
b
Type: SystemDouble
b the right endpoint

Return Value

Type: Double
a random real number uniformly in [a, b)
Exceptions
ExceptionCondition
ArgumentExceptionunless a < b
See Also