dimanche 27 décembre 2015

Generate a list of random string of fixed length in python

I need to generate a list which will have random alphanumeric string of fixed length. It will be something like: list = ['ag5','5b9','c85'] I can make the list with random numbers, but i can't work out to make strings which will have both numbers and letters.The list will have fixed length(say 100 item). I am using python 3.




Aucun commentaire:

Enregistrer un commentaire