What happened when you tried?
What you need to do is figure out *what you're trying to do* first. How would you do this in real life, with a real deck of cards?
Pretend you have a friend who...
Type: Posts; User: KevinWorkman
What happened when you tried?
What you need to do is figure out *what you're trying to do* first. How would you do this in real life, with a real deck of cards?
Pretend you have a friend who...
Think about what this for loop is doing:
for (int i=0; i<3; i++)
{
int randomPosition = r.nextInt(3);
RandomDeck[randomPosition] = Deck[i];
}