public static void generatorofnear(int num, String filepath){
		Scanner in;
		Random ramdom = new Random();
		try {
			in = new Scanner(new FileInputStream(new File("source/ca.1000.dat")));
			PrintStream out = new PrintStream(new FileOutputStream(filepath));
			int i = 0;
			int sx = 1 << 20, sy = 1 << 20, mx = -1, my = -1;
			while(in.hasNext()){
				in.nextInt(); in.nextInt();
				in.nextInt(); in.nextInt();
				int x1 = in.nextInt(), y1 = in.nextInt();
				if(x1 > mx) mx = x1;
				if(x1 < sx) sx = x1;
				if(y1 > my) my = y1;
				if(y1 < sy) sy = y1;
				int x = ramdom.nextInt(1000) - 500, y = ramdom.nextInt(1000) - 500;
				if(ramdom.nextFloat() > 0.9){
					out.println("1 " + (i + 1) + " " + (x1 + x) + " " + (y1 + y) + " " + (x1 + x) + " " + (y1 + y));
					i ++;
				}
				if(i >= num)break;
			}
			for(; i < num; i++){
				int x = ramdom.nextInt(mx - sx), y = ramdom.nextInt(my - sy);
				out.println("1 " + (i + 1) + " " + (x + sx) + " " + (y + sy) + " " + (x + sx) + " " + (y + sy));
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}