Randomize Script

Osilo

Newbie
Joined
Nov 26, 2004
Messages
121
Reaction score
0
Is there a way to randomly change a variable on an object? or say change it for a random amount of time. and possibly rense and repeat.

I'd like to turn a light off for 1-59 seconds and then turn it on for 2-59 seconds and then repeat. I'll tweak the timers later so that people don't die :-P.
 
Logic_case fires a random OnCase## output when you send it a PickRandom input. Since it's limited to 16 outputs, you could have one for 1-16, another for 17-32, a third for 33-48, and a fourth for 49-60, as well as one to randomly choose which of these to fire. Unfortunate downside: because the fourth logic_case has only 11 options instead of 16, the numbers 49-60 would mathematically have a better chance of being chosen.
 
or you could go 1-15, 16-30, 31-45, 46-60 to even it out. thats my two cents.
 
thanks for the quick response mate. i'll let you know if i have any problems with it so that you can help me out some more :-P.
 
Back
Top