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

How to Call a Random Variable from an Array?

Asked by 10 years ago

I've got this array, "array = {1, 2, 3, 4, 5}", and I'd like to know how to call a random number out of there?

1 answer

Log in to vote
0
Answered by 10 years ago

I THINK its

math.random(#array,#array)
Ad

Answer this question