Skip to content

Instantly share code, notes, and snippets.

@lorinma
Created November 30, 2015 07:29
Show Gist options
  • Save lorinma/1f965a345e9ab358813f to your computer and use it in GitHub Desktop.
Save lorinma/1f965a345e9ab358813f to your computer and use it in GitHub Desktop.
Shuffle the letters in a sentence
s="HuazhongUniversityofScienceandTechnologyrankedtop19globaluniversityforengineeringin2015"
l=list(s)
x = [i for i in l]
from random import shuffle
shuffle(x)
x
"".join(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment