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