Random in expression for time only works with milliseconds? Giant numbers for minutes!


#1

I’m trying to reinvent the wait timer I had in my intrusion lights piston… Previously I was using a single “with” block with a wait timer between the turn on and turn off. I’d have that wait for a random time between 5 - 15 minutes, and then turn the lights back off again.

I’m trying to do the same thing, but with a variable stays true for {minutes}. When I put this in for the expression, and minutes selected in the time dropdown, I get what appears to be the random value, multiplied by 1000, multiplied by 60 (e.g. 840000 in the image below, when it should be a range of 5-15 minutes):


#2

You’ve hit a display glitch there, it was recently reported and discussed over here. The number that you are seeing is incorrect; it is being evaluated as minutes then converted back to milliseconds. I have a test on the other thread showing that despite the incorrect evaluation showed there the actual value is what you would expect.

There has been a bit of discussion on how to fix this but no definite solution yet.


#3

Alrighty, thanks for the quick reply… I’ll go ahead and try it out as-is!