So I want to figure out how to make random functions, this can be useful to make a game like Horrific Housing.
function One()
print("1")
end
function Two()
print("2")
end
function Three()
print("3")
end
local functions = {One(), Two(), Three()}
math.random(1, #functions)
I'm using strings because it shows whats happening. When you run this, it'll print all the numbers that are there, is there a way to fix this?

5 comments
Can confirm that this does work.
he's been online since i posted this so not sure what's up
works... should be marked as answer
Thank you, I really needed something like this!
no problem if you need any more help just ask