TNumber.Random Method

Generates the next pseudo-random number. Applicable only if the type of obj is TDouble and there are no units of measurement.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
C#
public TNumber Random()

Return Value

TNumber
A pseudo-random number in the range [0, this).

Exceptions

GeneralException Thrown if the type of obj is not TDouble or if there are units of measurement.

See Also