title: How to generate random word from a set of characters in python
body: <p>I am looking to generate a random word list from a set of characters in python.
  Problem here:- </p>
  
  <p>It is Generating like:-
  aaaaaa
  aaaaab
  aaaaac
  ...... So on</p>
  
  <p>I want to add random function so it generate same length with randomization of alphabets it has like:-
  a15bef
  f45acd
  9bbac0
  ...... So on</p>
  
  <p>Look With same length but random.</p>
  
  <p>How to add random function to it?</p>
  
  <pre><code>#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))
  </code></pre>
  
  <hr>
  
  <p>please help me to solve it.</p>