​Hello,

How would I use org.apache.commons.text.RandomStringGenerator to replace
the RandomStringUtils alpha numeric number?

String text = RandomStringUtils.randomAlphanumeric(num);

The docs only show how to use a-z :

RandomStringGenerator generator = new
                RandomStringGenerator.Builder()
                .withinRange('a', 'z').build();

String text = generator.generate(num);

Cheers

​

Reply via email to