code: def get_random_connection(self):
          
          if self._available_connections:
              node_name = random.choice(list(self._available_connections.keys()))
              conn_list = self._available_connections[node_name]
              # check it in case of empty connection list
              if conn_list:
                  return conn_list.pop()
          for node in self.nodes.random_startup_node_iter():
              connection = self.get_connection_by_node(node)
  
              if connection:
                  return connection
  
          raise Exception("Cant reach a single startup node.")
docs: Open new connection to random redis server.