>> def string_shuffle(s) >> s.split('').shuffle(s.length()).join >> return s >> end
def string_shuffle(s) s.split("").shuffle.join end string_shuffle("The Ruby language") => "ea gu bgTayehRlnu"