-4

Java の BigInteger クラスがわかりません。助けてくれませんか、、、公開

public BigInteger(int bitLength, int 確かさ, Random 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 に答える