code: public static <T> T pickRandom (Collection<T> values, Random r)
      {
          return pickRandom(values.iterator(), values.size(), r);
      }
docs: Picks a random object from the supplied {@link Collection}.
  
  @param r the random number generator to use.