On 05/21/2016 01:56 PM, stepharo wrote:
I checked and CMWC Marsaglia is part of polymath
PMNumberGenerator allSubclasses an
OrderedCollection(PMBernoulliGenerator PMBinomialGenerator
PMConstantGenerator PMExponentialGenerator PMGaussianGenerator
PMPoissonGenerator)
PMRandomGenerator allSubclasses an
OrderedCollection(PMMarsagliaKissRandom PMLehmerRandomGenerator
PMLinearCongruentialRandomGenerator PMMersenneTwisterRandomGenerator
PMParkMillerMinimumRandomGenerator)
So we could pick one of them for Pharo.
Stef
I don't see CMWC in PolyMath. The only Marsaglia algorithm I see there
is KISS (which from my reading of the literature is both more complex
than and inferior to CMWC). But the Mersenne Twister is there, and
though complex (possibly unnecessarily so) it is good, AFAICT.
Regards,
-Martin