title: How can i generate random ips from 0.0.0.0/0 range
body: <p>Here is my code so far.</p>
  <pre><code>import requests, sys, concurrent.futures, random
  
  ip = &quot;.&quot;.join(str(random.randint(0, 255)) for ip in range(4))
  
  def scan(ip):
       headers = {'user-agent': 'Keurig K575 Coffee Maker'}
       r = requests.get('http://' + ip + ':80' + sys.argv[1], headers=headers, timeout=0.5)
       print(r.url, r.status_code, r.headers['Server'])
  
  with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
       executor.map(scan, ip)
  </code></pre>