static public void shuffle(int[] array,int from,int to,Random rand){
  for (int i=to - 1; i > from; i--)   swap(array,i,rand.nextInt(i));
}

static public void shuffle ( int [ ] array , int from , int to , Random rand ) { for ( int i = to - 1 ; i > from ; i -- ) swap ( array , i , rand . nextInt ( i ) ) ; }
shuffles the values in the given array
