Sign up to create your own snipts, or login.

Public snipts » Fotinakis's snipts » Simple generation of random string in Python

posted on Jun 18, 2009 at 1:14 p.m. EDT in 
  • import string
    import random
    
    print "".join(random.sample(string.letters+string.digits, 8))
    

    copy | embed

0 Comments

Sign up, or login to leave a comment.