-4

我不了解 Java 中的 BigInteger 类。你能帮我吗,,, public

公共 BigInteger(int bitLength,int 确定性,随机 rnd)

bitLength 参数是怎么解释他的?

感谢您

4

2 回答 2

4

构造函数创建BigInteger指定长度的随机数。

于 2012-06-04T06:32:07.760 回答
1
bitLength - bitLength of the returned BigInteger.
certainty - a measure of the uncertainty that the caller is willing to tolerate.
            The probability that the new BigInteger represents a prime number will 
            exceed (1 - 1/2certainty). The execution time of this constructor is
            proportional to the value of this parameter.

rnd - source of random bits used to select candidates to be tested for primality.
于 2012-06-04T06:35:41.587 回答