choose slaves randomly rather than always picking the first one, closes #36