/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// your code goes here
int[] ints = {1,2,3,4,5,6,7,8,9};
for(int i = 0; i < ints.length; i++){
int ir
= (int)(Math.
random() * ints.
length); int temp = ints[i];
ints[i] = ints[ir];
ints[ir] = temp;
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKaW50W10gaW50cyA9IHsxLDIsMyw0LDUsNiw3LDgsOX07CmZvcihpbnQgaSA9IDA7IGkgPCBpbnRzLmxlbmd0aDsgaSsrKXsKICBpbnQgaXIgPSAoaW50KShNYXRoLnJhbmRvbSgpICogaW50cy5sZW5ndGgpOwogIGludCB0ZW1wID0gaW50c1tpXTsKICBpbnRzW2ldID0gaW50c1tpcl07CiAgaW50c1tpcl0gPSB0ZW1wOwp9ClN5c3RlbS5vdXQucHJpbnQoQXJyYXlzLnRvU3RyaW5nKGludHMpKTsKCX0KfQ==
[1, 4, 5, 9, 7, 3, 8, 2, 6]