public void generateSequence() {
		for (int i = 0; i < val; i++) {
			sequence[i] = random.nextInt(max - min + 1) + min;
		}
		Arrays.sort(sequence);
		int actualSum = sequence[0] + sequence[1];
		for (int i = 2; i < val; i++) {
			if (actualSum >= sequence[i]) {
				sequence[i] = actualSum + random.nextInt(100 - 0 + 1);
			}
			actualSum += sequence[i];
		}
		System.out.println(actualSum);

	}