in reply to how to use conditional loops when using while loop
I would use pack and unpack here, a MAC is a hex number.
pack the start and end of range of MACs. Unpack again to get integers.
Pick random numbers in the range between the two integers then pack an unpack to hex again.
Cheers,
R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to use conditional loops when using while loop
by ikegami (Patriarch) on Jul 28, 2005 at 16:18 UTC | |
by Random_Walk (Prior) on Jul 28, 2005 at 16:39 UTC | |
by ikegami (Patriarch) on Jul 28, 2005 at 16:51 UTC |