1#First pip install random-word
2from random_word import RandomWords
3r = RandomWords()
4
5# Return a single random word
6r.get_random_word()
7# Return list of Random words
8r.get_random_words()
9# Return Word of the day
10r.word_of_the_day()
11
1#easy random word generator
2import random
3words = ("Rock", "Paper", "scissor")
4word = random.choice(words)
5correct = word
6print(word)
1from RandomWordGenerator import RandomWord
2
3# Creating a random word object
4rw = RandomWord(max_word_size,
5 constant_word_size=True,
6 include_digits=False,
7 special_chars=r"@_!#$%^&*()<>?/\|}{~:",
8 include_special_chars=False)
9
1from RandomWordGenerator import RandomWord
2
3rw = RandomWord(max_word_size=5,
4 constant_word_size=False)
5
6print(rw.generate())
7