diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2002-04-10 14:54:39 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2002-04-10 14:54:39 (GMT) |
commit | a9745611def1d7811210d45626f4b5d91d0b927c (patch) | |
tree | 6cdd7c9e201b9a7a9174b0242534ae8c1ab712a0 /Lib | |
parent | 9a62448d2f81a9b9f19072fe665732a26a120c58 (diff) | |
download | cpython-a9745611def1d7811210d45626f4b5d91d0b927c.zip cpython-a9745611def1d7811210d45626f4b5d91d0b927c.tar.gz cpython-a9745611def1d7811210d45626f4b5d91d0b927c.tar.bz2 |
Use random instead of whrandom
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/sortperf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/sortperf.py b/Lib/test/sortperf.py index fd22194..4ad82a6 100644 --- a/Lib/test/sortperf.py +++ b/Lib/test/sortperf.py @@ -7,7 +7,7 @@ See tabulate() for output format. import sys import time -import whrandom +import random import marshal import tempfile import operator @@ -23,7 +23,7 @@ def randrange(n): except IOError: result = [] for i in range(n): - result.append(whrandom.random()) + result.append(random.random()) try: try: fp = open(fn, "wb") @@ -44,7 +44,7 @@ def randrange(n): ##assert len(result) == n # Shuffle it a bit... for i in range(10): - i = whrandom.randint(0, n-1) + i = random.randrange(0, n) temp = result[:i] del result[:i] temp.reverse() |