private int[] generateTestingArray() {
		Random r = new Random();
		int arraySize = (Integer) spinnerArraySize.getValue();

		int[] values = new int[arraySize];

		for (int i = 0; i < values.length; i++)
			values[i] = r.nextInt(SAVHistoryComponent.PLAYING_CARD_AMOUNT);

		if (this.rdbtnSorted.isSelected()) {
			Arrays.sort(values);
		} else if (this.rdbtnReverse.isSelected()) {
			Arrays.sort(values);
			for (int i = 0; i < values.length / 2; i++) {
				int temp = values[i];
				values[i] = values[values.length - i - 1];
				values[values.length - i - 1] = temp;
			}
		}
		return values;
	}