1
0
This commit is contained in:
ThomasV
2016-04-08 10:43:55 +02:00
parent 0ae04a6419
commit 43c037cc10
2 changed files with 2 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ class PRNG:
return start + (r % n)
def choice(self, seq):
return seq[self.randint(0, seq)]
return seq[self.randint(0, len(seq))]
def shuffle(self, x):
for i in reversed(xrange(1, len(x))):