Shuffle.java 370 B

123456789101112131415161718192021
  1. /*
  2. * Project 1
  3. *
  4. * Shuffle Class has a method to shuffle input ArrayList of Dominoes.
  5. *
  6. */
  7. import java.util.Collections;
  8. import java.util.ArrayList;
  9. public class Shuffle
  10. {
  11. public static ArrayList<Domino> shuffleDominoes(ArrayList<Domino> dominoesToShuffle)
  12. {
  13. Collections.shuffle(dominoesToShuffle);
  14. return dominoesToShuffle;
  15. }
  16. }