Am 18.12.2016 um 07:38 schrieb Duncan Jones:
Hi all,

I’ve created a variation of RandomStringUtils.random(), which generates the 
specified number of code points (rather than chars).

Implementation can be seen here 
(https://gist.github.com/dmjones500/da2f61a0234f428748417bf1443c0dff).

Signature is:

   public static String randomUnicode(final int count, final int minCodePoint, 
final int maxCodePoint,
             final Set<CodePointPredicate> include, final Random random)


Expected overloads:


   public static String randomUnicode(final int count, final int minCodePoint, final 
int maxCodePoint, final Set<CodePointPredicate> include)
   public static String randomUnicode(final int count, final int minCodePoint, 
final int maxCodePoint)
   public static String randomUnicode(final int count)

And possibly:

   public static String randomNumberUnicode(final int count)
   public static String randomAlphabeticUnicode(final int count)
   public static String randomAlphanumericUnicode(final int count)
+1 to adding these overloads

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to