code: public static <T> T getRandomPosition(List<T> list) {
  		if (list == null || list.isEmpty()) {
  			return null;
  		}
  		return list.get(getRandomInteger(list.size() - 1));
  	}
docs: Get a random position(object) from a list of generic objects. <br/>
  Using generics saves the trouble of casting the return object.
  
  @param <T>
  the type of the list objects to get the object from
  @param list
  the list with objects
  @return random object from given list or null of list is either null or
  empty