public int getGameDifficulty(String input) {
        Random rand = new Random();
        int value;
        int max = 45, maxmin = 33, midmax = 32, midmin = 24, minmax = 23, min = 15, insane = 8;
        
        if (input.equals("X"))
            //nextInt is exclusive of top value, so add 1 to include it
            value = (rand.nextInt(max - maxmin) + 1) + maxmin; //up to 46
        else if (input.equals("H"))
            value = (rand.nextInt(midmax - midmin) + 1) + midmin; //up to 33
        else if (input.equals("M"))
            value = (rand.nextInt(minmax - min) + 1) + min; //up to 24
        else if (input.equals("E"))
            value = (rand.nextInt(min - insane) + 1) + insane; //up to 16
        else
            //random integer including all easy-hard values
            value = rand.nextInt((max - insane) + 1) + insane;
        
        this.setDifficultyLevel(value);
        return value;
    }