from RandomWordGenerator import RandomWord
# Creating a random word object
rw = RandomWord(max_word_size,
constant_word_size=True,
include_digits=False,
special_chars=r"@_!#$%^&*()<>?/|}{~:",
include_special_chars=False)
from RandomWordGenerator import RandomWord
rw = RandomWord(max_word_size=5,
constant_word_size=False)
print(rw.generate())
from RandomWordGenerator import RandomWord
rw = RandomWord(max_word_size=5,
constant_word_size=True,
special_chars=r"@#$%.*",
include_special_chars=True)
print(rw.generate())
from RandomWordGenerator import RandomWord
rw = RandomWord(max_word_size=5)
print(rw.generate())
Output will be some random word like
> hdsjq
Output will be some random word like
> gw
Output will be some random word like
> gsd$
from RandomWordGenerator import RandomWord
rw = RandomWord(max_word_size=5,
constant_word_size=False)
print(rw.getList(num_of_random_words=3)
Output will be some random word like
> ['adjse', 'qytqw', ' klsdf', 'ywete', 'klljs']