I'm having some issues getting a random int. I need to run this function in a for loop, but every time I run the program does generate a random output until the next time i run it. Sometimes even running multiples times the output is the same.
char gerarMesa(){
srand(time(NULL));
int n = rand() % 5;
return (char) n + 65;
}