diff options
Diffstat (limited to 'lib/rand.py')
| -rw-r--r-- | lib/rand.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rand.py b/lib/rand.py index 0ca1a53..0616483 100644 --- a/lib/rand.py +++ b/lib/rand.py @@ -3,10 +3,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)] |
