RandomSource<TGenerator>.UncachedFacade.NextUInt32 Method

Returns a random 32-bit unsigned integer, consuming a full 64-bit value.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public uint NextUInt32()

Return Value

UInt32
A 32-bit unsigned integer in the range [0, MaxValue].

Remarks

This method consumes ONE full 64-bit value from the underlying RNG and returns the upper 32 bits (bits [63:32]). The lower 32 bits (bits [31:0]) are discarded. This matches the "High" convention common in compatibility modes.

  Caution

This method is less efficient than NextUInt32() because it discards half of each 64-bit value. Use only when full-width consumption is required.

See Also