random changes

Raymond Hettinger vze4rx4y at verizon.net
Thu Aug 7 20:22:02 EDT 2003


"dan"
> I did try random.WichmannHill, which gives completely different data
> to either the new or the old version.

It works for me:


Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> import random
>>> rng = random.Random(1492)
>>> rng.random()
0.44575247281897029


Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************

IDLE 1.0
>>> import random
>>> rng = random.WichmannHill(1492)
>>> rng.random()
0.44575247281897029



Raymond Hettinger






More information about the Python-list mailing list