http://qs321.pair.com?node_id=651211

onegative has asked for the wisdom of the Perl Monks concerning the following question:

Good day Monks, I am trying to add some load balancing functionality to a script by having a list of 4 hosts that are called either randomly or in a no repeat fashion so that every time the script is called it does not use the same host from the previous call. The script is not a running daemon thus I can't keep a record of the last known host called...

Is there a way to use random() or something else to select a different host without having an external lookup table to know which host was called previously...its not necessary that the same host not be called and therefore a random host would work but I am not sure how to use this function with a complete (FQDN) string...

Any suggestions would be greatly appreciated...

Thanks in advance,
Danny