summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-04-09 04:05:43 (GMT)
committerFred Drake <fdrake@acm.org>1998-04-09 04:05:43 (GMT)
commit3217be939512b4f0c5d2930ff44a51f59e1022cd (patch)
tree7f0d3f07e3bd8e8e0fed1edb6782ab4bd39fab67
parent153165ca3d35d8baffdf07f0b260733dd78db288 (diff)
downloadcpython-3217be939512b4f0c5d2930ff44a51f59e1022cd.zip
cpython-3217be939512b4f0c5d2930ff44a51f59e1022cd.tar.gz
cpython-3217be939512b4f0c5d2930ff44a51f59e1022cd.tar.bz2
Relocating file to Lib/lib-old.
-rw-r--r--Lib/rand.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/Lib/rand.py b/Lib/rand.py
deleted file mode 100644
index c299d0a..0000000
--- a/Lib/rand.py
+++ /dev/null
@@ -1,13 +0,0 @@
-# Module 'rand'
-# Don't use unless you want compatibility with C's rand()!
-
-import whrandom
-
-def srand(seed):
- whrandom.seed(seed%256, seed/256%256, seed/65536%256)
-
-def rand():
- return int(whrandom.random() * 32768.0) % 32768
-
-def choice(seq):
- return seq[rand() % len(seq)]