Oh shit didn't see that, one moment ill edit the post when i figure something out. 
   public boolean clickRandomXY(Shape region)
    {
    	Rectangle r = region.getBounds();
    	int maxX = (int) r.getMaxX() - 1;
    	int maxY = (int) r.getMaxY() - 1;
    	int minX = (int) r.getMinX() + 1;
    	int minY = (int) r.getMinY() + 1;
    	
    	int x, y;
    	
    	
    	x = rand(minX, maxX);
    	y = rand(minY, maxY);  		
    	 
        if(x < maxX && x > minX && y < maxY && y > minY){
    	return !mouse.click(x, y, false); //This will return true as long as the client thinks it clicked
        }
        //I think you can also do if r.contains(){..................}
        return false;
    }