Here's the modified version of qmqpc that will pick a random server instead
of the first available. I haven't tested it yet, but it compiles, and
printf statements in strategic places give me the output I'm looking for.
The rand() function is seeded with the current milliseconds from the system
Looks like it's going to work, but I still like the round robin idea
better. With the round robin idea you avoid the possibility of polling the
same down server repeatedly. I admit that this seems like an unlikely
event, but if you have few servers, it can be significant. (with 3 servers
this