I'm looking for some creativity on how to accomplish something. I need to basically create a rule that when a button is pressed, picks a random number between 1-50 and enters it as a parameter in a custom action. Is this even possible?
My use case is that I'm using an ESP32 with WLED flashed on it as a LED controller for a WS2811 individually addressable LED Strip. I'm using a custom driver that integrates WLED with Hubitat. WLED contains roughly 50 pre-programmed 'effects'. Setting the parameter of the device to any number between 1-50 will select a different effect.
The LED strip is in my daughter's room and I'd like to program a Pico remote button to randomly select an effect by randomly choosing a number.