def random_ready_conn(self, conn):
        # if all connections aren't getting RDY
        # occsionally randomize which connection gets RDY
        if len(self.conns) <= self.max_in_flight:
            return conn

        if (time.time() - self.last_random_ready) < 30:
            return conn

        ready_conns = [c for c in self.conns if not c.ready_count]
        if not ready_conns:
            return conn

        self.last_random_ready = time.time()
        return random.choice(ready_conns)
dataset/ETHPy150Open wtolson/gnsq/gnsq/reader.py/Reader.random_ready_conn/original