I would like to make something where I could set up a set of values like
local numbers = {"1", "2",} --etc.
local pickednumber = numbers[math.random(1, #numbers)]
But I want to make it so I don't have to list every number to be able to pick from it.
If you have further questions or can help it would be appreciated :)

2 comments
I don't understand what you want. Do you just want to get a random integer from 1 to n? Can you give a larger example so that it's clear?
Instead of having to write all the numbers I want to choose from, I would like to be able to set up something that I could have, say, a range from 1-100 and I could pick a number from 1-100 randomly