Author Topic: Random light  (Read 2367 times)

Walken100

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Random light
« on: April 09, 2011, 08:13:52 am »
Ok, I found lots of info on randomizing turning on/off a light (done) but I'd like to radomize which light is turned on. I can do this by duplicating the random timing rule across a few lights but was curious if there is a cleaner way to do this?

Bart
So tell me again why I have a right half of my brain?

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: Random light
« Reply #1 on: April 09, 2011, 11:45:50 pm »
To randomize which light is turn on/off you would probably need to use a script and use Math.GetRandomInteger(min, max).
John Hughes
Codecore Technologies

Walken100

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Re: Random light
« Reply #2 on: April 11, 2011, 07:23:21 pm »
To randomize which light is turn on/off you would probably need to use a script and use Math.GetRandomInteger(min, max).

Thats what I thought. I'm being lazy and trying to not write scripts but this shouldn't be too tough.
Bart
So tell me again why I have a right half of my brain?