I am simulating the shuffling of a card deck. So for now lets say i want the 52 cards in random order. Once a card is dealt it can no longer be dealt again.
This will give me 52 random numbers from 1-52. How canI implement it so all 52 numbers will be called and none will be repeated?
for i = 1,52 do
j=math.random(1, 52)
print (j)
end