import java.io.*;
class random
{
public static void shuffleArray(int[] cards)
{
int temp, index;int ar[]=new int[cards.length];
int count=0;
for (int i = 0; i < cards.length; i++)
{
index
= (int) (Math.
random() * (cards.
length - i
)) + i
; ar[count++]=index;
temp = cards[i];
cards[i] = cards[index];
cards[index] = temp;
}
}
{
// System.out.println("Enter The Number of Elements in Array");
int a[]=new int[i];
for(int j=0;j<i;j++)
{
}
shuffleArray(a);
for(i=0;i<a.length;i++)
System.
out.
print(a
[i
] + " " ); }
}
aW1wb3J0IGphdmEuaW8uKjsKCmNsYXNzIHJhbmRvbQp7CgpwdWJsaWMgc3RhdGljIHZvaWQgc2h1ZmZsZUFycmF5KGludFtdIGNhcmRzKSAKewogaW50IHRlbXAsIGluZGV4O2ludCBhcltdPW5ldyBpbnRbY2FyZHMubGVuZ3RoXTsKIGludCBjb3VudD0wOwogZm9yIChpbnQgaSA9IDA7IGkgPCBjYXJkcy5sZW5ndGg7IGkrKykKIHsKIGluZGV4ID0gKGludCkgKE1hdGgucmFuZG9tKCkgKiAoY2FyZHMubGVuZ3RoIC0gaSkpICsgaTsKIGFyW2NvdW50KytdPWluZGV4OwogdGVtcCA9IGNhcmRzW2ldOwogY2FyZHNbaV0gPSBjYXJkc1tpbmRleF07CiBjYXJkc1tpbmRleF0gPSB0ZW1wOwogfQogIAp9CgpwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmcgYXJbXSl0aHJvd3MgRXhjZXB0aW9uIAoKeyAgCiAgIElucHV0U3RyZWFtUmVhZGVyIGlzciA9IG5ldyBJbnB1dFN0cmVhbVJlYWRlcihTeXN0ZW0uaW4pOwogICBCdWZmZXJlZFJlYWRlciBiciA9IG5ldyBCdWZmZXJlZFJlYWRlcihpc3IpOwogIC8vIFN5c3RlbS5vdXQucHJpbnRsbigiRW50ZXIgVGhlIE51bWJlciBvZiBFbGVtZW50cyBpbiBBcnJheSIpOwogICBTdHJpbmcgbj0gYnIucmVhZExpbmUoKTsKICAgaW50IGk9SW50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