private void processIntervals() {
        for (int i = 0; i < randomNumbers.size(); i++) {
            float randomNumber = randomNumbers.get(i);
            for (int j = 0; j < N; j++) {
                if (randomNumber < intervals[j]) {
                    intervalValues[j]++;
                    break;
                }
            }
        }

        System.out.println(randomNumbers.size());
        float sum = 0.0f;

        for (int i = 0; i < intervalValues.length; i++) {
            sum += intervalValues[i];
        }

        chiSquare = 0;
        for (int i = 0; i < N; i++) {
            chiSquare += Math.pow((intervalValues[i] - 1000), 2) / 1000;
        }

        System.out.println(chiSquare);
        if (chiSquare < CHI_SQUARE_TABLE_10) {
            pass = true;
        }
    }