Show More
@@ -125,7 +125,8 b' def makepart(rng, k):' | |||||
125 | p = pickfrom(rng, firsttable)(rng) |
|
125 | p = pickfrom(rng, firsttable)(rng) | |
126 | l = len(p) |
|
126 | l = len(p) | |
127 | ps = [p] |
|
127 | ps = [p] | |
128 | while l < k: |
|
128 | maxl = rng.randint(1, k) | |
|
129 | while l < maxl: | |||
129 | p = pickfrom(rng, resttable)(rng) |
|
130 | p = pickfrom(rng, resttable)(rng) | |
130 | l += len(p) |
|
131 | l += len(p) | |
131 | ps.append(p) |
|
132 | ps.append(p) |
General Comments 0
You need to be logged in to leave comments.
Login now