Package | Description |
---|---|
java.math | |
java.util |
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]. |
Modifier and Type | Method and Description |
---|---|
static void |
Collections.shuffle(List<?> list,
Random rnd) |
Copyright © 2018. All rights reserved.