Randomizes cards based on rarity, displays them, and saves them along with other details.