BigInteger.Random Method

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

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
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