home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 May / maximum-cd-2010-05.iso / DiscContents / boxee-0.9.20.10711.exe / system / python / Lib / lib-old / rand.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  590 b   |  17 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. import whrandom
  5.  
  6. def srand(seed):
  7.     whrandom.seed(seed % 256, seed / 256 % 256, seed / 65536 % 256)
  8.  
  9.  
  10. def rand():
  11.     return int(whrandom.random() * 32768.0) % 32768
  12.  
  13.  
  14. def choice(seq):
  15.     return seq[rand() % len(seq)]
  16.  
  17.