FastRandomNextUInt64 Method

Returns a random 64-bit unsigned integer that is less than UInt64.MaxValue.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
[CLSCompliantAttribute(false)]
public ulong NextUInt64()

Return Value

UInt64
A 64-bit unsigned integer that is greater than or equal to 0 and less than UInt64.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 SampleInt64 method to obtain any UInt64 value.

See Also