private double checkDistribution_nextInt(RandomGenerator randGen) {
		
		int[] count = new int[100] ;
		
		int total = FAST_TEST ? 1000000 : 10000000 ;
		double totalD = total ;
		
		for (int i = 0; i < total; i++) {
			int n = randGen.nextInt(100) ;
			count[n]++ ;
		}
		
		double distribution = totalD / count.length ;
		
		double tolerance = 0.05 ;
		
		double minDist = distribution * (1-tolerance) ;
		double maxDist = distribution * (1+tolerance) ;

		double errTotal = 0 ;
		
		for (int i = 0; i < count.length; i++) {
			int c = count[i] ;
			
			assertTrue( c >= minDist && c <= maxDist ) ;
			
			double err = 1 - (c / distribution) ;
			if (err < 0) err = -err ;
			
			errTotal += err ;
		}
		
		double errMean = errTotal / count.length ;
		return errMean ;
	}