diff options
author | Guido van Rossum <guido@python.org> | 1994-05-06 14:28:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-05-06 14:28:19 (GMT) |
commit | 2922c6dabbd9f8e49975ff3d972644c7212882e9 (patch) | |
tree | 3ea84b9ee77599005eee665078cb486deb7209e6 /Lib/random.py | |
parent | e4c6131baab4d09d31d280fa7dbca76cbe319dbb (diff) | |
download | cpython-2922c6dabbd9f8e49975ff3d972644c7212882e9.zip cpython-2922c6dabbd9f8e49975ff3d972644c7212882e9.tar.gz cpython-2922c6dabbd9f8e49975ff3d972644c7212882e9.tar.bz2 |
Changes to use default argument values where possible
Diffstat (limited to 'Lib/random.py')
-rw-r--r-- | Lib/random.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/random.py b/Lib/random.py index 0d2f06b..608203f 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -214,15 +214,11 @@ def betavariate(alpha, beta): # -------------------- test program -------------------- -def test(*args): +def test(N = 200): print 'TWOPI =', TWOPI print 'LOG4 =', LOG4 print 'NV_MAGICCONST =', NV_MAGICCONST print 'SG_MAGICCONST =', SG_MAGICCONST - N = 200 - if args: - if args[1:]: print 'Excess test() arguments ignored' - N = args[0] test_generator(N, 'random()') test_generator(N, 'normalvariate(0.0, 1.0)') test_generator(N, 'lognormvariate(0.0, 1.0)') |