#include <stdio.h>#include <stdlib.h>#include <time.h>
int main() {// 设置随机种子srand(time(NULL));
// 定义奖品数组char *prizes[] = {"一等奖", "二等奖", "三等奖", "谢谢参与"};// 生成随机数(0-3),代表抽奖结果int random = rand() % 4;// 输出抽奖结果printf("恭喜你抽中了:%s\n", prizes[random]);return 0;}


