I am looking to generate a random word list from a set of characters in python. Problem here:-
It is Generating like:- aaaaaa aaaaab aaaaac ...... So on
I want to add random function so it generate same length with randomization of alphabets it has like:- a15bef f45acd 9bbac0 ...... So on
Look With same length but random.
How to add random function to it?
#Code
import itertools
chrs = 'abcdef0123456789' # Change your required characters here
n = 6 # Change your word length here
for xs in itertools.product(chrs, repeat=n):
print(''.join(xs))
please help me to solve it.