Run
import random seq = 'abcdefghijklmnopqrstuvwxyz0123456789' x = random.choices(seq, k = 5) print(x)
Output