I suppose you "cheated" by not shuffling the deck and with the randseed call somehow you took advantage of knowledge about the ordered deck you had created.