there is a full "deck" of cards that it draws from.
when the cards run out, there is a 1 in 52 chance that the first card of the next deck will be exactly the same card, but that doesn't happen much.