An issue in designing a Card Trick Game using C#
<p>I want to create a card trick game using C#. I've designed Picture Boxes on the form to be the cards (backside). I also created a Click method for each of the pictures that creates a random number between 0, 51 and use the number to set an image from an ImageList. </p>

<pre><code>        Random random = new Random();
        int i = random.Next(0, 51);
        pictureBox1.Image = imageList1.Images[i];
</code></pre>

<p>My problem is that sometimes I get the same numbers (example: two Jacks of Spades), how can I prevent that?! (I mean if, for example, I got (5), I may get another (5))</p>
