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
1from RandomWordGenerator import RandomWord
2
3rw = RandomWord(max_word_size=5)
4
5print(rw.generate())
6
1Output will be some random word like
2> ['adjse', 'qytqw', ' klsdf', 'ywete', 'klljs']
3
4
1from RandomWordGenerator import RandomWord
2
3rw = RandomWord(max_word_size=5,
4 constant_word_size=False)
5
6print(rw.getList(num_of_random_words=3)
7
1from RandomWordGenerator import RandomWord
2
3rw = RandomWord(max_word_size=5,
4 constant_word_size=True,
5 special_chars=r"@#$%.*",
6 include_special_chars=True)
7
8print(rw.generate())
9