I have this code that generates combinations of numbers When I squeeze, he starts the combinations what I want and that it save these combinations in a txt file
import random
c1 = (random.choice([9, 9]))
c2 = (random.choice([1, 1]))
c3 = (random.choice([9, 9, 9]))
def gerar_randomico():
return random.choice([2, 3, 4, 5, 6, 7, 8, 9])
def gerar_randomicus():
return random.choice([6, 7, 8, 9])
for i in range(3):
print ('{}{}{}{}{}{}{}{}{}{}{}'.format(c1, c2, c3, gerar_randomicus(), gerar_randomico(),gerar_randomico(), gerar_randomico(),gerar_randomico(),gerar_randomico(),gerar_randomico(), gerar_randomico()))