8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a62448 commit a974561Copy full SHA for a974561
Lib/test/sortperf.py
@@ -7,7 +7,7 @@
7
8
import sys
9
import time
10
-import whrandom
+import random
11
import marshal
12
import tempfile
13
import operator
@@ -23,7 +23,7 @@ def randrange(n):
23
except IOError:
24
result = []
25
for i in range(n):
26
- result.append(whrandom.random())
+ result.append(random.random())
27
try:
28
29
fp = open(fn, "wb")
@@ -44,7 +44,7 @@ def randrange(n):
44
##assert len(result) == n
45
# Shuffle it a bit...
46
for i in range(10):
47
- i = whrandom.randint(0, n-1)
+ i = random.randrange(0, n)
48
temp = result[:i]
49
del result[:i]
50
temp.reverse()
0 commit comments