Use RandomUtils.getRandom() Override MahoutTestCase in test cases so that you get a deterministically seeded test generator.
RandomUtils.getRandom() returns a well-seeded Mersenne Twister for production use. On Tue, Apr 26, 2011 at 2:16 PM, Jeff Eastman <[email protected]> wrote: > It's used in o.a.m.math.function.Functions.random() > > -----Original Message----- > From: Jeff Eastman [mailto:[email protected]] > Sent: Tuesday, April 26, 2011 2:14 PM > To: [email protected] > Subject: RE: Question on Random number generators > > There's a MersenneTwister implementation in o.a.m.math.jet.random.engine > > -----Original Message----- > From: Ted Dunning [mailto:[email protected]] > Sent: Tuesday, April 26, 2011 2:10 PM > To: [email protected] > Subject: Re: Question on Random number generators > > Yes. Let me find it. I thought that RandomUtils would have used that. > > On Tue, Apr 26, 2011 at 12:09 PM, Jake Mannix <[email protected]> > wrote: > > > We have a mersenne twister in here somewhere, don't we Ted? > > >
