import random
import string
prefix = [
'130', '131', '132', '133', '134', '135', '136', '137', '138', '139',
'145', '147', '149', '150', '151', '152', '153', '155', '156', '157',
'158', '159', '165', '171', '172', '173', '174', '175', '176', '177',
'178', '180', '181', '182', '183', '184', '185', '186', '187', '188',
'189', '191'
]
def builder():
rom = random.randint(0, len(prefix) - 1)
suffix = ''.join(random.sample(string.digits, 8))
return prefix[rom] + suffix
def run():
for i in range(3):
print(builder())
if __name__ == "__main__":
run()
|