#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <locale.h> int main() { int symbol; char text[] ="текст"; setlocale(LC_ALL,""); srand(time(0));
for (int i = 0; i <strlen(text);i++){ int r = rand()%strlen(text); symbol = text[i]; text[i] = text[r]; text[r] = symbol;
}
printf("%s",text);