Skip to content

Instantly share code, notes, and snippets.

@lxneng
Created March 20, 2012 04:28
Show Gist options
  • Save lxneng/2131327 to your computer and use it in GitHub Desktop.
Save lxneng/2131327 to your computer and use it in GitHub Desktop.
def get_random_word(wordLen):
word = ''
for i in xrange(wordLen):
word += random.choice(('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrs'
'tuvwxyz0123456789/&='))
return word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment