Click or drag to resize

RandGenMTwistNextFloatComplex(Boolean) Method

Returns a complex number with single-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: 7.4
Syntax
public FloatComplex NextFloatComplex(
	bool includeOne
)

Parameters

includeOne  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

FloatComplex
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