Skip to content

Instantly share code, notes, and snippets.

@wayslog
Created October 12, 2023 04:41
Show Gist options
  • Save wayslog/6db0bf9b191228798b72a6c935a7cc09 to your computer and use it in GitHub Desktop.
Save wayslog/6db0bf9b191228798b72a6c935a7cc09 to your computer and use it in GitHub Desktop.
import random
import time
def main():
random.seed(time.time())
names = open("names.txt").read().split("\n")
items = ["iPad mini6 64G"] * 5 + ["iPad 9th 256G"] * 15 + ["apple watch 9 45mm al"]*3
random.shuffle(names)
for (name, item) in zip(names, items):
print(f"{name} {item}")
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment