FloatScale Enumeration

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

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.5.0
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.

Extension Methods

AllFlagsDefined Gets whether every single bit value in flags are defined in the enum type of flags, or when flags is zero, it is checked whether zero is defined in the enum type of flags.
(Defined by EnumExtensions)
IsSingleFlag Gets whether only a single bit is set in value.
(Defined by EnumExtensions)

See Also