Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Shuffle(){
- Random random = new Random();
- for(int i = 0; i < length; i++)
- {
- int index = random.nextInt(length);
- Card temp = cards[i];
- cards[i] = cards[index];
- cards[index] = temp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement