def randomInSet(lightNumbers, colourList, t): for lightNumber in lightNumbers: bridge_request.sendRequest(lightNumber, colourList[randint(0, len(colourList) - 1)])
def randomInRangeAction(lightNumbers, t, minHue=0, maxHue=65535): for lightNumber in lightNumbers: bridge_request.sendRequest(lightNumber, colours.randomColourInRange(minHue, maxHue))