Returns a complex number with double-precision real and imaginary parts set to random numbers between 0.0 and 1.0. The bounds are either strictly less than one, or less than or equal to one, depending on the value of the given boolean parameter.

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

Syntax

C#
public DoubleComplex NextDoubleComplex(
	bool includeOne
)
Visual Basic (Declaration)
Public Function NextDoubleComplex ( _
	includeOne As Boolean _
) As DoubleComplex
Visual C++
public:
DoubleComplex NextDoubleComplex(
	bool includeOne
)

Parameters

includeOne
Type: System..::.Boolean
If true, the real and imaginary parts are less than or equal to 1.0; otherwise, they are strictly less than 1.0.

Return Value

If includeOne is true, this method returns a complex number with real and imaginary parts equal to random numbers that are greater than or equal to 0.0, and less than or equal to 1.0. If includeOne is false, then the values will be greater strictly less than 1.0.

See Also