Returns a random
BigInteger number with the specified number of bits.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static BigInteger Random(
Random random,
int numberOfBits
)
Public Shared Function Random (
random As Random,
numberOfBits As Integer
) As BigInteger
public:
static BigInteger Random(
Random^ random,
int numberOfBits
)
static member Random :
random : Random *
numberOfBits : int -> BigInteger
Parameters
- random
- Type: SystemRandom
The random number generator used to generate the random bits. - numberOfBits
- Type: SystemInt32
The number of bits in the number.
Return Value
Type:
BigIntegerA random number with exactly
numberOfBits bits.
Reference