Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Generate Random IP Addresses for PHP

by Anonymous Monk
on Feb 27, 2012 at 05:55 UTC ( #956376=note: print w/replies, xml ) Need Help??


in reply to Re: Generate Random IP Addresses
in thread Generate Random IP Addresses

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"; } ?>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956376]
help
Chatterbox?
[Discipulus]: anyway i never bought a PC in my life: few videocards and some disks: i recycle old things

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2017-07-27 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (407 votes). Check out past polls.