It doesn't matter.
When you want non-duplicated characters from a group, the while loop exits when there are no more characters to choose from.
Even if you set 50 non-duplicated characters, the while loop exits after 26.
N 56°04'39.16"
E 12°55'05.25"