public static < T > T pickRandom ( T [ ] values ) { return ( values == null || values . length == 0 ) ? null : values [ getInt ( values . length ) ] ; }
Picks a random object from the supplied array of values . Even weight is given to all elements of the array .