Here's thought I had while working on a project for a Visual Basic class.
First off, we were required to create an application that shuffled and dealt a poker hand of 5 cards out of a 52 card deck.
The code we are using to generate the seed for the random number is:
intSavedRandom = DateAndTime.Now.Millisecond
Dim rand = New Random(intSavedRandom)
For card = 1 To 52
row = rand.Next(4)
col = rand.Next(13)
And so on.
I've noticed so far that the most I ever seem to get as far as a seed is a 3 digit number. I assume that goes from either 0 or 1 to 999. My question is, with something like 2.5 million possible poker hands in a 52 card deck, is it ever possible to get all of them? With each seed producing a different hand, it doesn't seem likely. Is there a way to achieve a larger seed?
I've also posted this question in our class forum but I'm not certain how often that gets checked, I figured I had a better chance of getting some feedback here.