CODE:
from random import choice
from string import ascii_uppercase
print(''.join(choice(ascii_uppercase) for i in range(12)))
OUTPUT:
5 examples:
QPUPZVVHUNSN
EFJACZEBYQEB
QBQJJEEOYTZY
EOJUSUEAJEEK
QWRWLIWDTDBD
EDIT:
If you need only digits, use the digits
constant instead of the ascii_uppercase
one from the string
module.
3 examples:
229945986931
867348810313
618228923380
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…