 | 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic FloatComplex NextFloatComplex(
bool includeOne
)
Public Function NextFloatComplex (
includeOne As Boolean
) As FloatComplex
public:
FloatComplex NextFloatComplex(
bool includeOne
)
member NextFloatComplex :
includeOne : bool -> FloatComplex
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
FloatComplexIf
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