public static char pickChar(String values) {
		if (values == null || values.length() == 0)
			return '\0';

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

@param values a string to pick a char from
@return a randomly picked char.