public static Color randomColor(Color currentColor, int minTotalOffset) {
		int offset = 0;
		int r = 0, g = 0, b = 0;
		Random randGen = new Random(System.currentTimeMillis());
		while(offset < minTotalOffset) {
			r = Math.abs(randGen.nextInt()%256);
			g = Math.abs(randGen.nextInt()%256);
			b = Math.abs(randGen.nextInt()%256);
			offset = Math.abs((int) ( (double) currentColor.getRed()*255.0) - r) +
		  		  	 Math.abs((int) ( (double) currentColor.getGreen()*255.0) - g) +
		  		  	 Math.abs((int) ( (double) currentColor.getBlue()*255.0) - b);
		}
		return new Color((double)r/255.0, (double)g/255.0, (double)b/255.0, 1.0);
		
	}