I'm attempting to make a blackjack type clone in c# so I need to make my cards appear randomly as the game loads up.
This is what I have tried, to no avail. Cardgen is simply a random number generator, textbox1 is simply something that displays a "game over" and the picturebox1 is the card.
if (cardGen == 2)
{
pictureBox1.Image = Properties.Resources._2;
score += 2;
if (score > 21)
{
textBox1.Visible = true;
}
}