public void randomizePlayerOrder(){
  if (players == null || players.size() == 0) {
    return;
  }
  Collections.shuffle(players);
  int playerCount=players.size();
  for (int i=0; i < playerCount; i++) {
    Player p=players.get(i);
    p.setSeat(i + 1);
  }
}

public void randomizePlayerOrder ( ) { if ( players == null || players . size ( ) == 0 ) { return ; } Collections . shuffle ( players ) ; int playerCount = players . size ( ) ; for ( int i = 0 ; i < playerCount ; i ++ ) { Player p = players . get ( i ) ; p . setSeat ( i + 1 ) ; } }
randomizes the order of players , assigning seats to the new order .
