How do I create one of two objects at random?

I’m making a simple game where you sort red and blue cards. My issue is that I have no idea how to create either a red card OR a blue card at random.

I only want one card to appear at a time and create a new card once the current one is sorted.

How would I go about doing this?

Any help is appreciated. Thanks in advance!

If the colour is the only difference between cards, then you could use one sprite with 2 animations - the first (animation 0) being red and the second (animation 1) being blue.

Then when you create a new card, randomise the animation number (set animation number = Random(1)).

Sorry for the late reply. It works now! Thanks for your help!