GatewayServer random(List<GatewayServer> list) {
        return list.get(new Random().nextInt(list.size()));
    }
GatewayServer random(List<GatewayServer> list) {
        return list.get(new Random().nextInt(list.size()));
    }
GatewayServer random ( List < GatewayServer > list ) { return list . get ( new Random ( ) . nextInt ( list . size ( ) ) ) ; }
Random.

@param list the list
@return the gateway server
Random .