I have a string of words that I want to scramble in a unique way. I want to scramble all of the letters except for the first and last. So for instance, the string
"The quick brown fox jumped over the lazy dog"
might get turned into
"The qicuk borwn fox jmuepd oevr the lzay dog"
Ive been messing with a way to do this for a while, but havn't come up with a way to do it. Can someone please help?
fyi, the reason Im writing this is to demostrate the fact that most of the time, all you need to have is the first and last letter of the word in the right place to read the word. pretty neat huh ;-)