On 19 Des, 12:29, Steven D'Aprano <st...@remove-this- cybersource.com.au> wrote:
> Perhaps > the Matlab random number generator is a low-quality generator which is > fast but not very random. Python uses a very high quality RNG which is > not cheap. Marsaglia and Matlab's implementation of ziggurat uses a slightly lower quality RNG for uniform deviates than NumPy's Mersenne Twister. But the real speed advantage comes from avoiding trancendental functions. I have for some time thought of contributing a ziggurat generator to NumPy, while retaining the Mersenne Twister internally, but I have not got around to do it. -- http://mail.python.org/mailman/listinfo/python-list