char str[10000];for(int i = 0; i < 10000; i++){ char ch = 'a'; srand(time(0)); ch += rand()%26; str[i] = ch;}这样就可以实现啦