vals = {
[1] = "1shfh",
[2] = "2shfh",
[3] = "3shfh",
[4] = "4shfh",
[5] = "5shfh",
[6] = "6shfh",
[7] = "7shfh",
[8] = "8shfh",
[9] = "9shfh",
[10] = "10shfh" -- this is just a test table, if you were wondering
}
maps1 = math.random(1,#vals)
table.remove(vals, maps1)
maps2 = math.random(1,#vals)
table.remove(vals, maps2)
maps3 = math.random(1,#vals)
table.remove(vals, maps3)
maps4 = math.random(1,#vals)
table.remove(vals, maps4)
while wait() do
print(maps1,maps2,maps3,maps4)
end
it ALWAYS prints 9 9 2 3. its supposed to give me 4 different numbers, and i cant have them repeat, thats why there is the table.remove

8 comments
I did the same thing you did, but rather than the repetitive usage of accessing a random index, then removing it from the table. I just used a for loop and put them all into the 'maps' table.
uh, where in the world did you get maps from? it was just a name. also, this gives me all the values. i am so confused.
No it doesn't, it gives you 4 values. And I made 'maps' as a holder for the random maps that were extracted from 'vals'
somethings weird. its not random. it ALWAYS print: 9, 10, 2, 4
It's always random for me when I put it into the command bar :P
really? shame i cant use the command bar for this.
LOLOLOL
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^