http://www.perlmonks.org?node_id=389163


in reply to Generate Random IP Addresses

For the obfuscation section:

s,,...,.s,,int rand 256,eg

Replies are listed 'Best First'.
Re^2: Generate Random IP Addresses for PHP
by Anonymous Monk on Feb 27, 2012 at 05:55 UTC
    Thank you was useful
    <?php for ($n = 1; $n < 100; $n++) { print implode('.', array(intval(mt_rand(0,255)), intval(mt_rand(0,255)), intval(mt_rand(0,255)), intval(mt_rand(0,255)))) . "\n"; } ?>