Balanced Random Letter Generator

This program generates 6 letters whose scrabble points will always add up to the same value.
Enter what number they should add up to, and choose whether to allow duplicates: