Skip to content

Instantly share code, notes, and snippets.

@Thithip
Last active August 29, 2015 14:13
Show Gist options
  • Save Thithip/123b63450aba6eca38c8 to your computer and use it in GitHub Desktop.
Save Thithip/123b63450aba6eca38c8 to your computer and use it in GitHub Desktop.
Python : Génération d'un mot de passe aléatoire
import random
import string
pwd = ''.join([string.ascii_letters.__add__(string.digits) [random.randint(0,len(string.ascii_letters+string.digits) -1) ] for i in range(10)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment