public int randomInt(int n){
		Random r = new Random();
		xi = r.nextInt(99);
		int seed = 12345;
		sSeries = new int[99];
		xSeries = new int[99];
		sSeries[0] = seed;
		for(int i = 1; i < 99; i++){
			sSeries[i] = (sSeries[i-1] * 22695477) + 1;
		}
		for(int j = 0; j < 99-4; j++){
			xSeries[j] = (sSeries[j+4] / 65536)%16384;
			//System.out.println(xSeries[j]);
		}
		//System.out.println(xSeries[xi]%n);
		return (xSeries[xi]%n);
	}