Skip to content

Instantly share code, notes, and snippets.

@nullset2
Created September 6, 2025 21:50
Show Gist options
  • Save nullset2/74b4c255c07c05fd5540eb30893e6c97 to your computer and use it in GitHub Desktop.
Save nullset2/74b4c255c07c05fd5540eb30893e6c97 to your computer and use it in GitHub Desktop.
from random import randint
f = open('numbers.txt', 'w')
def decidePrefix(x):
return {
0: "HW2011",
1: "HW2001",
2: "HW1006",
3: "HW1600",
}[x]
for i in range(0,99):
f.write("%s%d%d%d%d%d\n" % (decidePrefix(randint(0,3)), randint(0,9), randint(0,9), randint(0,9), randint(0,9), randint(0,9)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment