#include <stdio.h>
#include <stdlib.h>
int main(int argc, const char * argv[]) {
char ch [10];
char c[] = {'a','b','c'};
for (int i = 0 ; i < 10 ; i++) {
ch[i] = c[arc4random_uniform(3)];
}
for (int i = 0 ; i < 10 ; i++) {
printf("%c\t",ch[i]);
}
return 0;
}
|
|