by Ricardo Fernández Serrata
Write any string, and this flow will shuffle it. Keep pressing "OK" to re-shuffle the same text, or to shuffle a new string.
This shuffles individual characters (Unicode code-points), not syllables. The "(?u)" flag ensures Unicode-Awareness, so surrogate pairs are treated as such, instead of individual code-units.
There's an 1/n! probability of reversing the string, because the reverse string is just 1 permutation of all n! permutations (where "n" is the length of the string). The same probability applies to No-Op, so the string can remain unchanged.
("n!" is "factorial function of n")
Rate and review within the app in the Community section.