![]() |
#2
apull2023-06-28 20:47
|
代码:
#include <stdio.h>
#include <time.h>
int main(void){
char v[]=("1 2 3 4 5 6 7 8 9 0");
unsigned seed=time(NULL);
srand(seed);
printf("%c",v[rand()%10]);
}