public static String pick ( String [ ] values ) { if ( values == null || values . length == 0 ) return "" ; int index = RandomInteger . nextInteger ( values . length ) ; return values [ index ] ; }
Picks a random string from an array of string .