I have written the following for my own project, and a couple of variants elsewhere (randomNumeric( min, max ) etc.
Also I'm considering maybe a randomGraph() (for printable characters that match the posix graph regex), and random utf8. I find these useful for test input data. if I wrote it into a patch for RandomStringUtils including docs and tests would it be accepted/is it something the project would be interested in? (please cc me I'm not on the list) public class RandomUtil { public static String randomAlphanumeric( final int minLength, final int maxLength ) { return RandomStringUtils.randomAlphanumeric( RandomUtils.nextInt( minLength, maxLength ) ); } } -- Caleb Cushing http://xenoterracide.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org