// string_scramble(str)
// Scrambles the characters in str
var in, out, pos;
in = argument0;
out = '';
while (string_length(in) > 0) {
pos = floor(random(string_length(in))) + 1;
out += string_char_at(in, pos);
in = string_delete(in, pos, 1);
}
return out;
Categories: String handling
There are no comments to display.
You must be signed in to post comments.