code: public static <T> T pick(T[] values) {
  		if (values == null || values.length == 0)
  			return null;
  
  		return values[RandomInteger.nextInteger(values.length)];
  	}
docs: Picks a random element from specified array.
  
  @param values an array of any type
  @return a randomly picked item.