Java.Math.BigInteger.ProbablePrime Method
Returns a random positive BigInteger instance in the range [0, pow(2, bitLength)-1] which is probably prime.

Syntax

[Android.Runtime.Register("probablePrime", "(ILjava/util/Random;)Ljava/math/BigInteger;", "")]
public static BigInteger ProbablePrime (int bitLength, Java.Util.Random rnd)

Parameters

bitLength
length of the new BigInteger in bits.
random
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif bitLength .

Remarks

Returns a random positive BigInteger instance in the range [0, pow(2, bitLength)-1] which is probably prime. The probability that the returned BigInteger is prime is greater than 1 - 1/2100).

[Android Documentation]

Requirements

Namespace: Java.Math
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1