[TEXT-34] Add class to generate random strings (original) (raw)

The RandomStringUtils class will be deprecated in Commons Lang and reborn in Commons Text.

Because the original class has some complicated parameters and potentially unnecessary capabilities, I'll simplify as I move it across. I'll also ensure the class plays nicely with Unicode characters.

is related to

Improvement - An improvement or enhancement to an existing feature or task. LANG-1196 Provide way to set random number generator on RandomStringUtils to enable repeatable test execution

Improvement - An improvement or enhancement to an existing feature or task. LANG-1254 ThreadLocalRandom should be used in utility classes

is superceded by

Improvement - An improvement or enhancement to an existing feature or task. TEXT-36 RandomStringGenerator: allow users to provide source of randomness

Improvement - An improvement or enhancement to an existing feature or task. TEXT-37 Global vs local source of randomness