@@ -0,0 +1,855 @@
+package jsprit.core.util;%0A%0Aimport jsprit.core.problem.job.Job;%0Aimport jsprit.core.problem.solution.route.VehicleRoute;%0A%0Aimport java.util.Collection;%0Aimport java.util.Random;%0A%0A/**%0A * Created by schroeder on 14/01/15.%0A */%0Apublic class RandomUtils %7B%0A%0A    public static VehicleRoute nextRoute(Collection%3CVehicleRoute%3E routes, Random random)%7B%0A        int randomIndex = random.nextInt(routes.size());%0A        int count = 0;%0A        for(VehicleRoute route : routes)%7B%0A            if(count %3C= randomIndex) return route;%0A            count++;%0A        %7D%0A        return null;%0A    %7D%0A%0A    public static Job nextJob(Collection%3CJob%3E jobs, Random random)%7B%0A        int randomIndex = random.nextInt(jobs.size());%0A        int count = 0;%0A        for(Job job : jobs)%7B%0A            if(count %3C= randomIndex) return job;%0A            count++;%0A        %7D%0A        return null;%0A    %7D%0A%0A%7D%0A

add helper to easily get random routes and jobs from collection