FloatScale Enumeration

Represents the scaling strategy when generating random floating-point numbers.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public enum FloatScale

Members

Auto0 The scaling will be chosen automatically based on the provided range.
ForceLinear1 Forces to use linear scaling when generating random numbers.
ForceLogarithmic2 Forces to use logarithmic scaling when generating random numbers. Please that generating random numbers on the logarithmic scale can be significantly slower than on the linear scale, especially when generating Decimal values.

See Also