Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

What does this Output error mean?[Answered] [closed]

Asked by 10 years ago

bad argument #2 to 'random' (interval is empty)

what does it mean?

Locked by adark, 2eggnog, TofuBytes, and M39a9am3R

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
3
Answered by
2eggnog 981 Moderation Voter
10 years ago

That happens when your second argument in math.random is less than the first.

print(math.random(1,0)) --Will give the same error.
0
Thanks Coolviper630 95 — 10y
Ad