I'd like to be able to make this function clear out the table, or overwrite it instead of adding onto it. How would I go about that? I couldn't just use table.remove(rolls) could I?
sides = 6
numdice = 1
rolls{}
function rollthedice()
for i = 1, numdice do
table.insert(rolls, math.random(1,sides))
end
end

2 comments
whiel -> while
oops