Big Integer.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#
A random number with exactly numberOfBits bits.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
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
BigIntegerA random number with exactly numberOfBits bits.