On Sat, Jun 15, 2013 at 12:35 PM, Duncan Jones <dun...@wortharead.com>wrote:
> On 15 June 2013 15:49, Gary Gregory <garydgreg...@gmail.com> wrote: > > I thought 2.6 had such a class and we got rid of it. > > 2.6 had a class by the same name (so I've discovered since your mail), > but it merely amalgamated the different random methods from Math and > Random. > > I think this new class does exactly what is required from Commons Lang > and adds functionality that is missing from the base classes. > Ok, well, I just want to check that we are not adding back what er removed ;) Gary > > Duncan > > > > > > > On Sat, Jun 15, 2013 at 9:58 AM, Duncan Jones <dun...@wortharead.com> > wrote: > > > >> 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 > >> > >> > > > > > > -- > > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > > Java Persistence with Hibernate, Second Edition< > http://www.manning.com/bauer3/> > > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > > Spring Batch in Action <http://www.manning.com/templier/> > > Blog: http://garygregory.wordpress.com > > Home: http://garygregory.com/ > > Tweet! http://twitter.com/GaryGregory > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory