commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Wiedmann <>
Subject Re: [lang] Shuffling arrays
Date Wed, 28 Sep 2016 13:55:34 GMT
On Wed, Sep 28, 2016 at 1:40 PM, Gilles <> wrote:

> If not, then random utilities are not best located in Commons Lang,
> because indeed the no-dep requirement forces you to go through
> "java.util.Random" which is bad (TM) for several reasons, mentioned
> here, there, and everywhere.

I agree that RNG could be removed from CL (Binary compatibility
considerations left aside). However, rather than introducing
unnecessary dependencies, one would instead use an RNG interface, with
an ovious default implementation. In other words, if "Joe Average
Random" (aka Gilles) wants to use Commons RNG, he's perfectly capable
to do so.

That's the way how you design low level libraries.


The next time you hear: "Don't reinvent the wheel!"

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message