]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Relocating file to Lib/lib-old.
authorFred Drake <fdrake@acm.org>
Thu, 9 Apr 1998 04:05:43 +0000 (04:05 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 9 Apr 1998 04:05:43 +0000 (04:05 +0000)
Lib/rand.py [deleted file]

diff --git a/Lib/rand.py b/Lib/rand.py
deleted file mode 100644 (file)
index c299d0a..0000000
+++ /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)]