Function rand_char is used to generate random letters that will be assigned to the string.
char rand_char(){
char rand_ch;
srand(time(NULL));
rand_ch = rand() %26 +'A';
return rand_ch;
}
for (j=0; j<7; j++){
game->players[0].hand[j].letter = rand_char();
}
if I check printf("%c",game->players[0].hand[j].letter); all elements have the same letter. But they should have different random letters.