Random alphanumeric string generator


/ Published in: Python
Save to your folder(s)

Returns 5 random alphanumeric strings of arbitrary size.


Copy this code and paste it in your HTML
  1. import random, string
  2.  
  3. for c in range(5):
  4. print random.sample(string.letters+string.digits, 8)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.