When I insert a variable into the math.random() code such as "math.random(100)" my frame/image will not show up but when I leave the variable box open () it shows up and the code works. It only works WITHOUT a variable "math.random()".
✓ ANSWER ACCEPTED
math.random trouble. Frame doesn't show up with variables. ???
2 answers
✓ Accepted answer
math.random() requires two arguments: The start point and end point, so to speak.
local number = math.random(1,100)
print(number)
number's value will be selected randomly between 1 and 100.
local min = 1 local max = 5 print(math.random(min,max))
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Im pretty sure you need two variables, and math.random picks between them, such as math.random(1,100)