>>482
これでもいいけど。

char s[] = "12345678";
for(int i = 0; i < sizeof(s); i++){
int x = rand()%(sizeof(s)-i)+i;
char c = s[x];
s[x] = s[i];
s[i] = c;
}