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