RandomGeneratorExtensions.UInt32ToSingle 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#
public static float UInt32ToSingle(
	uint value
)

Parameters

value  UInt32
The 32-bit unsigned integer value.

Return Value

Single
A float in the range [0.0f, 1.0f).

See Also