It is the cards you take. the most cards you have in the deck from a set (min. 2) determines the transformation (starting cards don't count). if it is the same (2 beast, 2 slime) it is random or the newest, I don't remember ;)