Skip to content

Instantly share code, notes, and snippets.

@thurask
Created December 3, 2016 03:07
Show Gist options
  • Save thurask/9337e7f92437d9a67646c7878113b6af to your computer and use it in GitHub Desktop.
Save thurask/9337e7f92437d9a67646c7878113b6af to your computer and use it in GitHub Desktop.
For scum.
import random
def random_pin():
hexa = "0123456789ABCDEF"
valid_starts = "2357"
pin = random.choice(valid_starts) + "".join(random.sample(hexa, 7))
return pin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment