generate random 16 digit number python code example
Example: 16 digit number generate on python
# Python3 code to demonstrate
# generating random strings
# using random.choices()
import string
import random
# initializing size of string
N = 7
# using random.choices()
# generating random strings
res = ''.join(random.choices(string.ascii_uppercase +
string.digits, k = N))
# print result
print("The generated random string : " + str(res))