 | RandGenMTwistNextDoubleComplex(Boolean) Method |
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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic DoubleComplex NextDoubleComplex(
bool includeOne
)
Public Function NextDoubleComplex (
includeOne As Boolean
) As DoubleComplex
public:
DoubleComplex NextDoubleComplex(
bool includeOne
)
member NextDoubleComplex :
includeOne : bool -> DoubleComplex
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
DoubleComplexIf
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