Groovy Programmer : How to split loads between webbots?

Lately, I am coding a lot Webbots. Sometimes you need to split the load between different machines. Actual physical machines.

Lets same you you have 6 machines at your disposal. Also, lets assume you know the total size of the elements which you want to process in parallel. For this example lets say 50 items of work. We are going to give each worker an index. Sino we are programmers lets start from index 0. How do I get the collection which the 4th worker ( index 3 ) should take care of?

With Groovy It is easy thanks to the collate function. This is how it looks: