fork download
  1. import random
  2.  
  3. def fprintf(file, fmt, *args):
  4. fmt %= args
  5. file.write(fmt)
  6.  
  7. def main():
  8. f = open("\\tenmillionrandint.txt", "w")
  9. for i in xrange(10000000):
  10. fprintf(f, "%d,\n", random.randint(0,10000000))
  11. f.close()
  12.  
  13. if __name__ == '__main__':
  14. main()
Runtime error #stdin #stdout 0.03s 6500KB
stdin
Standard input is empty
stdout
Standard output is empty