Hacker News new | ask | show | jobs
by yayr 1828 days ago
function randomIP() {

  return int2ip(Math.random()\*4294967296) ;  
}

says it all - better don't "mess" with what you encounter

1 comments

It doesn't even exclude RFC1918 and multicast addressses. Not really efficient.