Generates a random number with the specified number of bits such that gcd(number, this) = 1

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public BigInteger genCoPrime(
	int bits,
	Random rand
)
Visual Basic
Public Function genCoPrime ( 
	bits As Integer,
	rand As Random
) As BigInteger
Visual C++
public:
BigInteger^ genCoPrime(
	int bits, 
	Random^ rand
)
F#
member genCoPrime : 
        bits : int * 
        rand : Random -> BigInteger 

Parameters

bits
Type: System..::..Int32
rand
Type: System..::..Random

Return Value

Type: BigInteger

See Also