FastRandomNextUInt32 Method

Returns a random 32-bit unsigned integer that is less than UInt32.MaxValue.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
[CLSCompliantAttribute(false)]
public uint NextUInt32()

Return Value

UInt32
A 32-bit unsigned integer that is greater than or equal to 0 and less than UInt32.MaxValue.

Remarks

  Caution

Starting with version 6.0.0 the behavior of this method has been changed to be conform with the behavior of the NextInt64 method introduced in .NET 6.0. Cast the result of the SampleInt32 method to obtain any UInt32 value.

See Also