Skip to content

Instantly share code, notes, and snippets.

@kieranajp
Created March 28, 2012 15:40
Show Gist options
  • Save kieranajp/2227452 to your computer and use it in GitHub Desktop.
Save kieranajp/2227452 to your computer and use it in GitHub Desktop.
Random IP address
<?php
long2ip(rand(0, "4294967295")); // random up to 255.255.255.255
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment