thinkserver/thinks/random_slug.py

7 lines
220 B
Python
Raw Normal View History

2024-03-04 15:05:35 +00:00
from random import choice
words = 'avocado biscuit chocolate doughnut eclaire fudge goulash haddock icing juice koala lemon melon nut'.split(' ')
def random_slug():
return '-'.join(choice(words) for i in range(3))