[pypy-svn] r34682 - pypy/dist/demo
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Nov 16 17:34:37 CET 2006
Author: cfbolz
Date: Thu Nov 16 17:34:37 2006
New Revision: 34682
Removed:
pypy/dist/demo/rrandom.py
Modified:
pypy/dist/demo/bpnn.py
Log:
get rid of the rrandom.py module in demo and use rlib/rrandom.py in bpnn
Modified: pypy/dist/demo/bpnn.py
==============================================================================
--- pypy/dist/demo/bpnn.py (original)
+++ pypy/dist/demo/bpnn.py Thu Nov 16 17:34:37 2006
@@ -23,12 +23,12 @@
import math
import time
-# RPython version of random: rrandom
-import autopath; import rrandom as random
+import autopath
+from pypy.rlib import rrandom
PRINT_IT = False
-random.seed(0)
+random = rrandom.Random(1)
# calculate a random number where: a <= rand < b
def rand(a, b):
More information about the Pypy-commit
mailing list