Re: [text] - using RandomStringGenerator for alpha numeric

2017-07-01 Thread Amey Jadiye
however that is little > painful for application developers. > > What I'm pushing for is pass just array of (min, max) pairs and API will > take care of it, that will be less painful and easy to use API. > > Ex. > > char [][] ranges = {{'0

Re: [text] - using RandomStringGenerator for alpha numeric

2017-06-29 Thread Amey Jadiye
t will be less painful and easy to use API. Ex. char [][] ranges = {{'0','9'},{'A','Z',{'a','z'}}}; RandomStringGenerator generator = new RandomStringGenerator.Builder() .withinRange(ranges).build();

Re: [text] - using RandomStringGenerator for alpha numeric

2017-06-29 Thread Gilles
elong to this class (or its builder). At first sight, it seems preferable that ranges are transformed (into an array of characters) before being passed to the generator builder. Regards, Gilles Regards, Amey -- Forwarded message ------ From: Amey Jadiye Date: Tue, Jun 27, 2017 at 10:

Re: [text] - using RandomStringGenerator for alpha numeric

2017-06-29 Thread Amey Jadiye
> Amey > > ---------- Forwarded message -- > From: Amey Jadiye > Date: Tue, Jun 27, 2017 at 10:57 PM > Subject: Re: [text] - using RandomStringGenerator for alpha numeric > To: Commons Users List , gregh3...@gmail.com > > > Hi Greg, > &g

Fwd: [text] - using RandomStringGenerator for alpha numeric

2017-06-27 Thread Amey Jadiye
Forwarded message -- From: Amey Jadiye Date: Tue, Jun 27, 2017 at 10:57 PM Subject: Re: [text] - using RandomStringGenerator for alpha numeric To: Commons Users List , gregh3...@gmail.com Hi Greg, Thanks for writing to us, as range are the codePoints you can use it like below. Ran