mix up a string

rbt rbt at athop1.ath.vt.edu
Sun Jun 5 22:45:45 CEST 2005


What's the best way to take a string such as 'dog' and mix it up? You 
know, like the word jumble in the papers? ODG. I thought something like 
mix = random.shuffle('dog') would do it, but it won't. Any tips?

Thanks,
rbt



More information about the Python-list mailing list