FastRandomSampleInt64 Method

Returns a random Int64 can have any value.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public long SampleInt64()

Return Value

Int64
A 64-bit signed integer that is greater than or equal to Int64.MinValue and less or equal to Int64.MaxValue.

Remarks

Similarly to the NextInt64 method this one returns an Int64 value; however, the result can be negative and the maximum possible value can be Int64.MaxValue.

The RandomExtensions.SampleInt64(Random) extension method has the same functionality but it is faster to call this one directly.

See Also