¿Quién ayudará con el proceso de sorteo aleatorio?
# incluir & lttime.h & gt
char Rand();
int main()
{
ARCHIVO * fp
if((fp=fopen("result.txt "," w ")== NULL)
{
Printf("¡Error al crear el archivo!");
Devuelve 1;
}
fputc(Rand(), FP) ;
Devuelve 0;
}
char Rand()
{
srand(tiempo(NULL ));
return rand()% 25+65;
}
Selecciona aleatoriamente letras mayúsculas A-Z