#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void){ char v[]="1234567890"; unsigned seed=time(NULL); srand(seed); printf("%c",v[rand()%10]); }