there are a different number of items of each type. Suppose I have items 'a', 'b' and 'c'. have an array of these items ['a','b','b','c','c','c','a','c'] for example and i want to re position the items in the array so they all get visited as often as possible in proportion to how many there are.
Any ideas how I do this. I want it so i can take a load handling factor for my servers and simply build an array of host id's so I spread the load as evenly as possible not send 5 clients to one server in a row then 3 clients to another in a row. If you get what i mean.