SHARE
TWEET

Untitled

a guest Jun 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import random
  2.  
  3. c1 = (random.choice([9, 9]))
  4. c2 = (random.choice([1, 1]))
  5. c3 = (random.choice([9, 9, 9]))
  6.  
  7. def gerar_randomico():
  8.     return random.choice([2, 3, 4, 5, 6, 7, 8, 9])
  9.  
  10. def gerar_randomicus():
  11.     return random.choice([6, 7, 8, 9])
  12.  
  13. for i in range(3):
  14.     print ('{}{}{}{}{}{}{}{}{}{}{}'.format(c1, c2, c3, gerar_randomicus(), gerar_randomico(),gerar_randomico(), gerar_randomico(),gerar_randomico(),gerar_randomico(),gerar_randomico(), gerar_randomico()))
  15.      
  16. import random
  17.  
  18. c1 = (random.choice([9, 9]))
  19. c2 = (random.choice([1, 1]))
  20. c3 = (random.choice([9, 9, 9]))
  21. lista = []
  22.  
  23. def gerar_randomico():
  24.     return random.choice([2, 3, 4, 5, 6, 7, 8, 9])
  25.  
  26. def gerar_randomicus():
  27.     return random.choice([6, 7, 8, 9])
  28.  
  29. for i in range(3):
  30.     lista1 = ('{}{}{}{}{}{}{}{}{}{}{}'.format(c1, c2, c3, gerar_randomicus(), gerar_randomico(),gerar_randomico(), gerar_randomico(),gerar_randomico(),gerar_randomico(),gerar_randomico(), gerar_randomico()))
  31.     with open('arquivo.txt','a') as arquivo:
  32.         arquivo.write(str(lista1))
  33.         lista_guardar = lista.append(arquivo)
  34.         print(lista_guardar)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top