[pypy-svn] r32417 - pypy/dist/pypy/module/_random
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Sep 17 16:16:13 CEST 2006
Author: cfbolz
Date: Sun Sep 17 16:16:12 2006
New Revision: 32417
Modified:
pypy/dist/pypy/module/_random/rpy_random.py
Log:
remove testing main method
Modified: pypy/dist/pypy/module/_random/rpy_random.py
==============================================================================
--- pypy/dist/pypy/module/_random/rpy_random.py (original)
+++ pypy/dist/pypy/module/_random/rpy_random.py Sun Sep 17 16:16:12 2006
@@ -91,22 +91,3 @@
b = self.genrand32() >> 6
return (a * 67108864.0 + b) * (1.0 / 9007199254740992.0)
-def main():
- import sys
- rnd = Random()
- rnd.init_genrand(1000)
- rnd.init_by_array([1, 2, 3, 4])
- print rnd.index
-
- for j in range(100):
- print rnd.state[j],
- if j % 7 == 6:
- print
- print "\n"
- for j in range(5):
- print rnd.genrand32(),
- if j % 7 == 6:
- print
- print
-
-main()
More information about the Pypy-commit
mailing list