Fix bug when selecting random characters from alphabet