public void generate_test() {
		boolean lowerTail = true;
		for (int i = 0; i < numTests;) {
			int N = rand.nextInt(MAX) + 1;
			int D = rand.nextInt(N) + 1;
			int n = rand.nextInt(N) + 1;
			int k = Math.max(rand.nextInt(Math.min(n, D)), 1);

			if (Hypergeometric.get().checkHypergeometricParams(k, N, D, n)) {
				double p = FisherExactTest.get().pValueDown(k, N, D, n, threshold);

				if (p < threshold) {
					System.out.print("\t print ( paste( 'compareFisher( " + k + ", " + N + ", " + D + ", " + n + ", ' , " + FisherExactTest.get().toR(k, N, D, n, lowerTail) + " , ');' ) );");
					System.out.println("");
					i++;
				}
			}
		}
	}