commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <>
Subject Re: [math] inconsistent use of random generators
Date Wed, 17 Nov 2010 01:14:43 GMT
It is also desirable to have a way to inject a test generator so that test
cases can be made deterministic.

In Mahout, we did this by having a static method in a utility class for
getting a standard generator for either testing or normal operation.  This
has turned out very well.

+1 on using a better default generator.

On Tue, Nov 16, 2010 at 1:16 PM, Luc Maisonobe <>wrote:

> I would also like to have one generator for each instance
> set up at construction time. I also think JDKRandomGenerator is probably
> not a good default and one of the more modern generators we now have
> could be used like Well19937c.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message