Don't ask to ask, just ask | |
PerlMonks |
Re^3: Generate Random IP Addressesby Anonymous Monk |
on Oct 26, 2004 at 02:50 UTC ( [id://402436]=note: print w/replies, xml ) | Need Help?? |
For those stumbling across this post in the future, I wanted to add a comment that I don't believe generating a random 32-bit number is the proper way to generate a random ip address. As illustrated in some of the other posts, you need to generate a random number for each octect.
This is not blatantly obvious and was a minor stumbling block while trying to figure out how to use that code.
In Section
Seekers of Perl Wisdom
|
|