From 2922c6dabbd9f8e49975ff3d972644c7212882e9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 6 May 1994 14:28:19 +0000 Subject: Changes to use default argument values where possible --- Lib/random.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Lib/random.py') diff --git a/Lib/random.py b/Lib/random.py index 0d2f06b74b..608203f547 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)') -- cgit v1.2.1