in reply to Re^2: Help with sorting/randomizing?
in thread Help with sorting/randomizing?
Thanks Grandfather. Yes, I know it doesn't generate anything yet. I am trying to work on it to provide random ranges.
This is all greek to me. I am thinking maybe counting %hash and iterating over the items.
Your code provides the randomness. However, it still have sequential Class-C ranges that I am trying to avoid:
64.3.71.100 64.3.71.98 66.1.73.23 66.1.73.21
This script is for a firewall. It should not have consecutive Class-C's
Best solution seems to be JavaFan's. If only I could shuffle Class-A's on that one
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Help with sorting/randomizing?
by GrandFather (Saint) on Mar 26, 2012 at 09:08 UTC |