Connection.php
protected function selectActiveNode()
    {
        $keys = array_keys($this->nodes);
        $this->activeNode = $keys[rand(0, count($keys) - 1)];
    }
protected function selectActiveNode()
    {
        $keys = array_keys($this->nodes);
        $this->activeNode = $keys[rand(0, count($keys) - 1)];
    }
protected function selectActiveNode ( ) { $ keys = array_keys ( $ this -> nodes ) ; $ this -> activeNode = $ keys [ rand ( 0 , count ( $ keys ) - 1 ) ] ; }
select active node randomly
select active node randomly