A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-February/143280.html below:

[Python-Dev] Time for a change of random number generator?

[Python-Dev] Time for a change of random number generator? [Python-Dev] Time for a change of random number generator?Steven D'Aprano steve at pearwood.info
Thu Feb 11 04:39:05 EST 2016
On Thu, Feb 11, 2016 at 01:08:41PM +1300, Greg Ewing wrote:
> The Mersenne Twister is no longer regarded as quite state-of-the art
> because it can get into states that produce long sequences that are
> not very random.
> 
> There is a variation on MT called WELL that has better properties
> in this regard. Does anyone think it would be a good idea to replace
> MT with WELL as Python's default rng?
> 
> https://en.wikipedia.org/wiki/Well_equidistributed_long-period_linear

I'm not able to judge the claims about which PRNG is better (perhaps Tim 
Peters has an opinion?) but if we do change, I'd like to see the 
existing random.Random moved to random.MT_Random for backwards 
compatibility and compatibility with other software which uses MT. Not 
necessarily saying that we have to keep it around forever (after all, we 
did dump the Wichmann-Hill PRNG some time ago) but we ought to keep it 
for at least a couple of releases.


-- 
Steve
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4