That would seem to make round-robin a good scheme. Keep the list in the same order and start with n + 1 where n is the last server sent work.
Regards, Richard Schuh > -----Original Message----- > From: CMSTSO Pipelines Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Colin Allinson > Sent: Wednesday, October 29, 2008 5:49 AM > To: [email protected] > Subject: How to do sort random? > > I have a list of 10 servers and a public routine that > dispatches work to them. The code tries each server in turn > until it finds one that can respond. > > I now want to randomly distribute the workload across the 10 > servers so I want to be able to sort the list into random > order. I still want to try all 10 servers once only until I > find one that responds. It is fairly easy to randomise the > starting point and then go through them in sequence but I > cannot think how to sort the list itself into random sequence. > > Does anyone have any ideas how to do this? > > > > Colin Allinson > > Amadeus Data Processing GmbH > > > > > IMPORTANT - CONFIDENTIALITY NOTICE - This e-mail is > intended only for the use of the individual or entity shown > above as addressees. It may contain information which is > privileged, confidential or otherwise protected from > disclosure under applicable laws. If the reader of this > transmission is not the intended recipient, you are hereby > notified that any dissemination, printing, distribution, > copying, disclosure or the taking of any action in reliance > on the contents of this information is strictly prohibited. > If you have received this transmission in error, please > immediately notify us by reply e-mail or using the address > below and delete the message and any attachments from your system. > > Amadeus Data Processing GmbH > Geschäftsführer: Eberhard Haag > Sitz der Gesellschaft: Erding > HR München 48 199 > Berghamer Strasse 6 > 85435 Erding > Germany >
