#include <stdio.h> #include <time.h> //输出一个大约等于0小于等于10的正整数。 int main (void) { srand((unsigned)time(NULL)); printf("The Random number is :%i\n",rand()%11); return 0; }