A
Andrew Banks
How can I generate random number between 1 and 13 inclusive.
I''m doing this at the moment by calling the following
private int PickCard()
{
Random RandomGenerator = new Random();
int RandomNumber = new int();
RandomNumber = RandomGenerator.Next(1, 14);
return RandomNumber;
}
But if I call it a few times straight after each other I get the same
numbers returned.
I''m doing this at the moment by calling the following
private int PickCard()
{
Random RandomGenerator = new Random();
int RandomNumber = new int();
RandomNumber = RandomGenerator.Next(1, 14);
return RandomNumber;
}
But if I call it a few times straight after each other I get the same
numbers returned.