original_string: public function getRandom()
      {
          $this->internalDataListUpdate();
          $count = sizeof($this->internalDataListData);
          if ($count > 0) {
              $index = rand(0, $count - 1);
              if (isset($this->internalDataListData[$index])) {
                  return $this->internalDataListUpdateValueIfNeeded($this->internalDataListData, $index);
              }
          }
          return null;
      }
code: public function getRandom()
      {
          $this->internalDataListUpdate();
          $count = sizeof($this->internalDataListData);
          if ($count > 0) {
              $index = rand(0, $count - 1);
              if (isset($this->internalDataListData[$index])) {
                  return $this->internalDataListUpdateValueIfNeeded($this->internalDataListData, $index);
              }
          }
          return null;
      }
code_tokens: public function getRandom ( ) { $ this -> internalDataListUpdate ( ) ; $ count = sizeof ( $ this -> internalDataListData ) ; if ( $ count > 0 ) { $ index = rand ( 0 , $ count - 1 ) ; if ( isset ( $ this -> internalDataListData [ $ index ] ) ) { return $ this -> internalDataListUpdateValueIfNeeded ( $ this -> internalDataListData , $ index ) ; } } return null ; }
docstring: Returns a random object from the list or null if the list is empty.
  
  @return object|null A random object from the list or null if the list is empty.
  @throws \InvalidArgumentException
docstring_tokens: Returns a random object from the list or null if the list is empty .