fork download
  1. import random
  2.  
  3. x = 5
  4. saida = []
  5. for _ in range(x):
  6. saida.append(random.choice(range(100)))
  7. print saida
  8.  
  9. saida = []
  10. for _ in range(x):
  11. saida.append(random.randint(0, 100))
  12. print saida
  13.  
  14. saida = [random.randint(0, 100) for _ in range(x)]
  15. print saida
Success #stdin #stdout 0s 32928KB
stdin
Standard input is empty
stdout
[5, 75, 9, 38, 33]
[74, 12, 15, 32, 74]
[88, 37, 17, 27, 58]