original_string: public function getRandom()
      {
          return empty($this->entities) ? null : $this->entities[array_rand($this->entities)];
      }
code: public function getRandom()
      {
          return empty($this->entities) ? null : $this->entities[array_rand($this->entities)];
      }
code_tokens: public function getRandom ( ) { return empty ( $ this -> entities ) ? null : $ this -> entities [ array_rand ( $ this -> entities ) ] ; }
docstring: Get a random Entity from this collection, or null if the
  collection is empty.
  
  @return Entity|null
docstring_tokens: Get a random Entity from this collection or null if the collection is empty .