Package | Description |
---|---|
java.math |
Modifier and Type | Method and Description |
---|---|
static BigInteger |
BigInteger.probablePrime(int bitLength,
Random rnd)
Returns a random positive
BigInteger instance in the range [0,
2^(bitLength)-1] which is probably prime. |
Constructor and Description |
---|
BigInteger(int bitLength,
int certainty,
Random rnd)
Constructs a random
BigInteger instance in the range [0,
2^(bitLength)-1] which is probably prime. |
BigInteger(int numBits,
Random rnd)
Constructs a random non-negative
BigInteger instance in the range
[0, 2^(numBits)-1]. |
Copyright © 2018. All rights reserved.