BigInteger.this

Constructs a randomly generated BigInteger, uniformly distributed over the range 0 to (2<sup>{@code numBits}</sup> - 1), inclusive. The uniformity of the distribution assumes that a fair source of random bits is provided in {@code rnd}. Note that this constructor always constructs a non-negative BigInteger.

@param numBits maximum bitLength of the new BigInteger. @param rnd source of randomness to be used in computing the new BigInteger. @throws IllegalArgumentException {@code numBits} is negative. @see #bitLength()

Meta