编辑代码

#include <stdio.h>
#include <stdlib.h>
#include <time.h> 
int main()
{//随机数1到60
    int x,num;
    srand(time( NULL )); 
    x =1 + (rand()%60);
    printf("%d",x);
    return 0;
}