private void nextpoints(int alg) {
		for (int i = 0; i < points; i++) {
			double xf = Math.random();
			double yf = Math.random();
			int xi = (int) Math.floor(ximlen * xf);
			int yi = (int) Math.floor(yimlen * yf);
			doCalculation(xf, yf, xi, yi);
		}

		runtotal += points;
		if (quad < 1.001) {
			quad = 1;
		} else {
			quad = (float) (50 * Math.sqrt((float) points / runtotal));
		}

		if (runtotal % pixels.length == 0) {
			if (runtotal == pixels.length * 2)
				fixHoles = true;

			long diff = (System.currentTimeMillis() - lastPassTime) / 1000;

			String strStatus = "Pass: " + (runtotal / pixels.length) + " - "
					+ diff + "s";
			System.out.println(strStatus);

			lastPassTime = System.currentTimeMillis();
		}

	}