bit busy so can't confirm the specifics, but Im pretty sure it's how you are handling your random card pick. For some values of randint aren't matching up with key values in your dict, so none of your if statements are matching the card. Might need to plug in some sort of try, finally, that prints out the random int and what card it attempts to associate with.