public static <T>T selectRandomlyFromList(List<T> l){
  return l.get(_r.nextInt(l.size()));
}

public static < T > T selectRandomlyFromList ( List < T > l ) { return l . get ( _r . nextInt ( l . size ( ) ) ) ; }
randomly select an element from a list .
