Create random string with a char + 2 numbers - python -
two questions:
how create char+number random string. 1 char , 2 digit numbers example:
u12 or w82
how create random 5 digit number no 0 @ beginning:
02345 , 03243
1)
import random, string "%c%02d" % (random.choice(string.uppercase), random.randint(0, 99))
2)
import random random.randint(10000, 99999)
Comments
Post a Comment