Click or drag to resize

RandomSourceDoSampleInt64WithNBits Method

Returns a random N-bit signed long integer greater than or equal to zero and less than 2^N. N (bit count) is expected to be greater than zero and less than 64 (not verified).

Namespace: Altaxo.Calc.Random
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
protected virtual long DoSampleInt64WithNBits(
	int bitCount
)

Parameters

bitCount  Int32
The number of random bits to sample.

Return Value

Int64
A random non-negative long integer whose value is smaller than 2 raised to bitCount.
See Also