public static String randomString(int length) {
        char[] result = new char[length];

        for (int i = 0; i < length; i++) {
            char pick = ALPHABET[RANDOM.nextInt(ALPHABET.length)];
            result[i] = pick;
        }

        return new String(result);
    }
Utility class for creation of random strings of 58 easy-to-distinguish characters.
core/src/main/java/org/testcontainers/utility/Base58.java