I am trying to generate a list of random letters of the English alphabet without using the same letter twice.
This code currently makes a list of random letters but there is a chance that letters are repeated... how could I avoid using the same letter twice?
for (int i = 0; i < 8; i++)
{
char c = (char)(rand.nextInt(26) + 65);
code += c;
}
break;