original_string: public function random()
      {
          $objReturn = null;
  
          $intIndex = rand(0, (count($this->collection) - 1));
          if (isset($this->collection[$intIndex])) {
              $objReturn = $this->collection[$intIndex];
          }
  
          return $objReturn;
      }
code: public function random()
      {
          $objReturn = null;
  
          $intIndex = rand(0, (count($this->collection) - 1));
          if (isset($this->collection[$intIndex])) {
              $objReturn = $this->collection[$intIndex];
          }
  
          return $objReturn;
      }
code_tokens: public function random ( ) { $ objReturn = null ; $ intIndex = rand ( 0 , ( count ( $ this -> collection ) - 1 ) ) ; if ( isset ( $ this -> collection [ $ intIndex ] ) ) { $ objReturn = $ this -> collection [ $ intIndex ] ; } return $ objReturn ; }
docstring: Pick a random child element
  @return mixed Randomly selected item from collection
docstring_tokens: Pick a random child element