Skip to content

Instantly share code, notes, and snippets.

@keithrozario
Created December 21, 2017 02:11
Show Gist options
  • Save keithrozario/32cc947c97142d1f8946f53360b0929a to your computer and use it in GitHub Desktop.
Save keithrozario/32cc947c97142d1f8946f53360b0929a to your computer and use it in GitHub Desktop.
generate a random bunch of strings for captcha
import string
from random import choice
alphabet = string.ascii_letters + string.digits
captcha = "".join(choice(alphabet) for x in range(1, 4))
print(captcha)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment