/* package whatever; // don't place package name! */

import java.util.Arrays;
import java.util.function.Consumer;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	
    public static void main(String[] args){
        int[] array = {1,2,3,4,5,6,7,8,9,10};
        new Ideone().a.accept(array);
        System.out.println(Arrays.toString(array));
    }

    Consumer<int[]> a = a->{for(int b=0,c,d=0,e=a.length;b<e;c=a[b],a[b]=a[d],a[d]=c,b++,d=b)d+=Math.random()*(e-b);};
}