|
@@ -78,8 +78,8 @@ class Manager:
|
78
|
78
|
if self.randomize:
|
79
|
79
|
if (self.index % self.step_size) == (self.step_size - 1):
|
80
|
80
|
# end of "segment", now go to random next segment
|
81
|
|
- new_index = self.index
|
82
|
|
- while (new_index == self.index) and (len(self.screens) > self.step_size):
|
|
81
|
+ new_index = self.index - self.step_size + 1
|
|
82
|
+ while (new_index == self.index - self.step_size + 1) and (len(self.screens) > self.step_size):
|
83
|
83
|
new_index = int(random.randrange(0, len(self.screens) / self.step_size) * self.step_size)
|
84
|
84
|
self.index = new_index
|
85
|
85
|
else:
|