mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Whitespace normalization, via reindent.py.
This commit is contained in:
parent
e6ddc8b20b
commit
182b5aca27
453 changed files with 31318 additions and 31452 deletions
|
@ -4,10 +4,10 @@
|
|||
import whrandom
|
||||
|
||||
def srand(seed):
|
||||
whrandom.seed(seed%256, seed/256%256, seed/65536%256)
|
||||
whrandom.seed(seed%256, seed/256%256, seed/65536%256)
|
||||
|
||||
def rand():
|
||||
return int(whrandom.random() * 32768.0) % 32768
|
||||
return int(whrandom.random() * 32768.0) % 32768
|
||||
|
||||
def choice(seq):
|
||||
return seq[rand() % len(seq)]
|
||||
return seq[rand() % len(seq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue