int[] riderIdxs = new int[ridersPerTeam];
int riderIdx;
while (eventRiders.size() < ridersPerTeam) {
riderIdx = RandomUtils.nextInt(trhList.size());
if (!ArrayUtils.contains(riderIdxs, riderIdx)) {
EventRider mr = new EventRider();
mr.setRiderKind(kind);
mr.setRider(trhList.get(riderIdx).getRider());
mr.setEvent(event);
eventRiders.add(mr);
}
}
return eventRiders;
}