home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Welt 2006 November (DVD)
/
PCWELT_11_2006.ISO
/
casper
/
filesystem.squashfs
/
usr
/
lib
/
python2.4
/
lib-old
/
rand.pyc
(
.txt
)
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Compiled Bytecode
|
2006-08-31
|
588 b
|
17 lines
# Source Generated with Decompyle++
# File: in.pyc (Python 2.4)
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)]