10 lines
213 B
Python
10 lines
213 B
Python
from __future__ import unicode_literals
|
|
import six
|
|
import random
|
|
|
|
|
|
def create_id():
|
|
size = 10
|
|
chars = list(range(10)) + ['A-Z']
|
|
return ''.join(six.text_type(random.choice(chars)) for x in range(size))
|