public static char pickChar ( String values ) { if ( values == null || values . length ( ) == 0 ) return ' ' ; int index = RandomInteger . nextInteger ( values . length ( ) ) ; return values . charAt ( index ) ; }
Picks a random character from a string .