BigInteger.Random Method

Returns a random BigInteger number with the specified number of bits.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static BigInteger Random(
	Random random,
	int numberOfBits
)

Parameters

random  Random
The random number generator used to generate the random bits.
numberOfBits  Int32
The number of bits in the number.

Return Value

BigInteger
A random number with exactly numberOfBits bits.

See Also