I have a problem finding a good algorithm for generating a random letter. I tried with this:
public static char GetLetter()
{
int num = random.Next(0, 26);
char letter = (char)('a' + num);
return letter;
}
which I found on the internet, but it generates same letter, or max two of them. For example, if I want to populate 4x4 matrix with random letters using code above, I get:
C C C C
C C C C
C C G G
G G G G
Any ideas or advices for this matter?