Created
December 3, 2016 03:07
-
-
Save thurask/9337e7f92437d9a67646c7878113b6af to your computer and use it in GitHub Desktop.
For scum.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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