谁帮忙做随机抽签程序?

# include & ltstdio.h & gt

# include & lttime.h & gt

char Rand();

int main()

{

FILE * fp

if((fp=fopen("result.txt "," w ")= = NULL)

{

Printf("文件创建失败!");

返回1;

}

fputc(Rand(),FP);

返回0;

}

char Rand()

{

srand(time(NULL));

return rand()% 25+65;

}

随机选择大写字母A-Z