code: protected int selectRandomPort() {
  
  		try {
  			int n = HIGHEST_RANDOM_PORT - LOWEST_RANDOM_PORT + 1;
  			int i = ComponentManager.getInstance().getRND().nextInt() % n;
  			if (i < 0)
  				i = -i;
  			return LOWEST_RANDOM_PORT + i;
  		} catch (SshException e) {
  			throw new RuntimeException(e.getMessage());
  		}
  	}
docs: Select a random port. NOTE: this method does not guarantee that the port
  is available.
  
  Simply generates a random number in the range LOWEST_RANDOM_PORT to
  HIGHEST_RANDOM_PORT
  
  @return int