10 lines
190 B
Python
10 lines
190 B
Python
|
import random
|
||
|
|
||
|
|
||
|
def get_random_num_code(length: int):
|
||
|
choices = '0123456789'
|
||
|
num_code = ''
|
||
|
for i in range(length):
|
||
|
num_code += random.choice(choices)
|
||
|
return num_code
|