Two questions:
How to create a char+number random string. one char and 2 digit numbers for example:
U12 OR W82
How to create a random 5 digit number with no zero at the beginning:
02345 , 03243
Two questions:
How to create a char+number random string. one char and 2 digit numbers
for example: U12 OR W82
How to create a random 5 digit number with no zero at the beginning: 02345 , 03243
1)
import random, string
"%c%02d" % (random.choice(string.uppercase), random.randint(0, 99))
2)
import random
random.randint(10000, 99999)