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