def _generateX(random, bits):
 while True:
  x = _getRandomNumber(random, bits)
  if (2 <= x <= ((2 ** bits) - 2)):
   return x

def _generateX ( random , bits ) : while True : x = _getRandomNumber ( random , bits ) if ( 2 <= x <= ( ( 2 ** bits ) - 2 ) ) : return x
generate a new value for the private key x .