Java Array Shuffle shuffle(List list)

Here you can find the source of shuffle(List list)

Description

shuffle

License

Apache License

Declaration

public static void shuffle(List<?> list) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Collections;

import java.util.List;
import java.util.Random;

public class Main {

    public static void shuffle(List<?> list) {
        Collections.shuffle(list);
    }//  ww  w .  j  a  v  a  2  s. c  o  m

    public static void shuffle(List<?> list, Random rnd) {
        Collections.shuffle(list, rnd);
    }
}

Related

  1. shuffle(int[] input)
  2. shuffle(int[] list, Random rnd)
  3. Shuffle(int[] v)
  4. shuffle(Integer[] data)
  5. shuffle(List list)
  6. shuffle(List list, Random rnd)
  7. shuffle(List as)
  8. shuffle(List list)
  9. shuffle(List list)