code: public static <T> T getRandomItem(T[] arr) {
  		return arr[rand.nextInt(arr.length)];
  	}
docs: Returns a random element of the given array.
  
  @param <T>
  Type of array elements
  @param arr
  Array
  @return Random element of <code>arr</code>