Random Generator Extensions.UInt 32To Single Method
Converts a 32-bit unsigned integer to a single-precision floating-point number in [0, 1).
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
A float in the range [0.0f, 1.0f).
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
public static float UInt32ToSingle(
uint value
)Parameters
- value UInt32
- The 32-bit unsigned integer value.
Return Value
SingleA float in the range [0.0f, 1.0f).