How to get random RGB value in a scene

Hi. I’d like to add some variety to a scene by adding a (static) random color to an RGB device every time the scene is run. How do you do that in LUUP? Shouldn’t be difficult at all, if one knows LUUP…

This seemed to do the trick, my 1st lines of lua :o

luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", {newLoadlevelTarget = math.random(0,20)}, 171) luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", {newLoadlevelTarget = math.random(0,20)}, 173) luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", {newLoadlevelTarget = math.random(0,20)}, 170) return true