i have java string array which looks like this :
String [] cards = {"c1","c2","c3", , , , , , ,, , "c45"};
so i have there 45 elements , now i like to rendom them each time so it will be :
int[] cards2 = Arrays.copyOf(cards , cards .length);
random(cards2);
how should be the random function look like ?