Java Utililty Methods Random Char

List of utility methods to do Random Char

Description

The list of methods to do Random Char are organized into topic(s).

Method

char[]randomChars(char[] alphabet, int length)
random Chars
if (alphabet == null || alphabet.length == 0)
    throw new IllegalArgumentException(
            "alphabet cannot be null or empty, it must contain a valid list of characters to pull values from. Many complete alpha, numeric and symbolic alphabets are pre-defined by this class for ease of use.");
if (length < 0)
    throw new IllegalArgumentException("length must be >= 0");
if (length == 0)
    return EMPTY_CHARS;
int max = alphabet.length - 1;
...