Skip to content

Instantly share code, notes, and snippets.

@su8
Created November 4, 2025 14:25
Show Gist options
  • Select an option

  • Save su8/ef62c2f443747a3ab8e7188ab6281f00 to your computer and use it in GitHub Desktop.

Select an option

Save su8/ef62c2f443747a3ab8e7188ab6281f00 to your computer and use it in GitHub Desktop.
generateRandomVariants.py
import itertools
def variants(word):
return [word, word.capitalize(), word.upper()]
names = ['frost']
roles = ['home', 'main']
seperators = ['', '_']
for n, r, sep in itertools.product(names, roles, seperators):
for nv, rv, in itertools.product(variants(n), variants(r)):
print(f"{nv}{sep}{rv}\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment