Welcoming random lights after sunset


#1

Hello,

I created bellow piston that welcomes visitors after sunset, with (random) lights.
But all the lights choose the same random color (ex: all the lights randomize to red). I want the lights to choose different random values. How can I achieve/approach that?

Thank you


#2

I use random color as well and I almost always get the same color. Occasionally I’ll get something new but not often. (I know this won’t run by itself. It gets called from another piston)


#3

I have not verified but if hue is 0-360, you can just use an expression random(360) instead of $randomHue

Edit: it worked the first I tried, now I’m getting the same values lol

Edit2: Much better…

8/30/2017, 2:08:45 PM +22ms
+205ms ║173
+225ms ║223
8/30/2017, 2:08:36 PM +998ms
+187ms ║274
+206ms ║273


#4

Setting a color from 2 moves (color and level) is not my favorite approach.


#5

Hi eibyer.

I modified the piston like bellow (line 31) and now it does what I wanted.

Thank U.