2012-06-04 43 views
-3

我不明白Java中的BigInteger類。你能幫我,,, 公共Java中的BigInteger類?

公衆的BigInteger(INT位長度,INT確定性,隨機RND)

位長度參數是他如何解釋?

感謝您

回答

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.