Sorry, my reply was a bit misleading/obtuse. Rushing around too much. Let me clarify a bit.
The [tt]random()[/tt] function is in (released) as previously promised. At the moment, the place that would be of most use to you is the “Delay” action, which accepts variables for its delay time and so would allow you to randomly delay subsequent actions in response to a condition. The “interval” condition doesn’t (yet) allow variables for its parameters, but I don’t think you need that right now.
I was hoping to achieve the perception of someone being home by randomly turning on the lights on and off, instead of the fixed set time or even sunset - the randomness of life.
For example have a reactor that I could set a time period of between 9pm-11pm and it will trigger randomly once within this period, simulating the randomness of someone living inside.
Mixing a few reactors using the same technique could accomplish sets of lights turning on and off randomly throughout the night like a lived in house.
You can get to this specific simple goal now. If you want me to propose a solution, I will, but I don’t want to give you spoilers, either, if you’re eager to solve it yourself.
But it still stands, as Forzaalfa asserts, that DeusExMachinaII is probably a better, more general solution for this general problem. While I like the idea of you being able to do anything with Reactor, and I’m always intrigued to see what people come up with and do with it, I’m never going to say that makes Reactor the best tool for every job. As I often say, “to the man holding a hammer, everything starts to look like a nail.” We should always be asking if this is the best way to get something done, and I’m a big fan of keeping things as simple as possible, not letting the complexity get out of hand. And perhaps a bit morbidly, I’m always thinking about someone else supporting my configuration if I get hit by a bus and my wife/family has to come to these forums and post for help (anyone who has been on these forums even just a year has probably seen that kind of situation play out). If I had just a couple of lights, sure. But these things have a habit of growing. I control 33 lights spread across almost every room of the house, indoors, outdoors, and garage, when my house is in “ghost” mode, so I use Deus. One plugin, one device, and that configuration was all mouse clicks and done, and any changes are that, too.
But by all means, have at it. You’ve got your random function, and you can use its result in the Delay action. I’m eager to see what you come up with. You know where to post if you hit a roadblock.