This commit is contained in:
Jonas Zeunert
2022-08-31 17:32:47 +02:00
parent a0d2083b01
commit 9dfd8c5209

View File

@@ -41,7 +41,7 @@ class LampGroup:
self.currentLampPtr -= 1
def toggleRandom(self, sleepTime):
count = random.randint(1,8)
count = random.randint(1,3)
random_lamps = random.choices(self.lamps, count)
for lamp in random_lamps:
lamp.activate()