File size: 175 Bytes
24926a5
 
 
 
 
 
1
2
3
4
5
6
7
import random

def random_id(length: int = 24) -> str:
    charset = "abcdefghijklmnopqrstuvwxyz0123456789"
    return ''.join(random.choice(charset) for _ in range(length))