update cards_random function to create a cards sequence