of     1   

lagio
#183644104Monday, February 15, 2016 4:06 AM GMT

so ipairs assigns a number (index?) to a object in a table and i can create a variable that is randomized between 1 and the number of objects in the table so how should i utilize all of this to make something that assigns random objects?
cntkillme
#183644178Monday, February 15, 2016 4:07 AM GMT

No, ipairs is an iterator function (well, it's actually wrapping one but that's not the point) that goes over the array part of a table. local x = {1, 2, 3, 4, 3, 2, 1}: for index, value in ipairs(x) do print(index, value); end Will print 1 2 3 4 3 2 1
lagio
#183644550Monday, February 15, 2016 4:11 AM GMT

okay i think i figured out everything i actually needed to know thanks guys!!!

    of     1