How to put math.random to switch between 2 seconds or 2.5 seconds or 2.75 seconds or 3 seconds in wait?
light=script.Parent.SpotLight
r=math.random(2,2.5),math.random(2.75,3)
rr=math.random(.3,.35),math.random(.4,.45),math.random(.5,.55)
The Output does "0 2 0 2 0 2 0 2 0 2" ECT.. ex: wait(r) --waits 2 or 2.5 or 2.75 or 3 seconds (random) How would I be able to do this without it doing the Output provided above? Help would be appreciated!

5 comments
I'm fairly certain 1 is exclusive, just like with many other languages.
Also the parenthesis should be brackets, but that was probably just a type.
Yep, typo. Fixed it. I've had it get 1 before, though I was doing stupid things and it may have been a rounding fluke.
Even with rounding errors, maybe you used math.ceil? Regardless here's a quote from lua.org 'When called without arguments, returns a uniform pseudo-random real number in the range [0,1)'
shrug. Like I said I was doing something stupid. The rarity of getting a 0 proves how rare a 1 would be if it even could appear.