Posted By

zhyar on 10/01/12


python random strings

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Random alphanumeric string generator

 / Published in: Python

Returns 5 random alphanumeric strings of arbitrary size.

  1. import random, string
  3. for c in range(5):
  4. print random.sample(string.letters+string.digits, 8)

Report this snippet  

You need to login to post a comment.