On 14 June 2013 07:55, Duncan Jones <dun...@wortharead.com> wrote:
> On 13 June 2013 21:26, Phil Steitz wrote:
>> On 6/13/13 1:03 AM, Duncan Jones wrote:
<snip>
>
>> I am not sure where this little method would fit in [lang]; but it might
>> make sense to add there in the simple form above (with RANDOM
>> static, I assume).
>
> Indeed, I had assumed any addition to [lang] would just use a standard
> source of randomness (i.e. a static Random or SecureRandom instance).
> However, I'm struggling to see an existing class that could
> accommodate the functionality and creating a new "RandomUtils" class
> feels a bit heavyweight, unless others can think of additional methods
> that would be useful.

I gave it some further thought and realised there were some other
methods that would prove useful in such a "RandomUtils" class. I've
created https://issues.apache.org/jira/browse/LANG-900 and attached an
implementation. I welcome comments.

Duncan

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

Reply via email to