Generating random values in rules DSL in OH3

Or just use Rules DSL. Nothing says you have to use JavaScript.

It’s easier with the helper libraries. But I’ve also some examples at Experimental Next-Gen Rules Engine Documentation 5 of : Actions which should be mostly correct. I don’t know if the sendHttp Actions have changed in OH 3.