I was thinking about upcoming Halloween and a "haunted house" routine. Assign each light to a number. Random number and toggle that number, possibly with a random delay.
1 Like
Random numbers are way too important to be left to chance.
2 Likes
Both random numbers and random delays are possible. The former needs a Number variable, and setting it to a random value using variable math:
That sets 'n' to a random number up to 20.
Random delay is available for every action:
3 Likes
Thank you!
The first constant is just an initial value?
It's the number used to calculate the random value. Random returns a number between 0 and 1, and multiplies it by that number to get the result. So it's an upper bound on the random number, while 0 is the lower bound.
BTW, there are random colors too.
1 Like
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.