original_string: protected function generateGrid($tiles, $columns)
      {
          [$distribution, $grid] = Distributor::distribute(
              $tiles,
              $columns,
              $this->settings['tallRate'],
              $this->settings['wideRate']
          );
          RandomFiller::fill($grid, $distribution, $this->settings['maxFillRetries']);
          return $grid;
      }
code: protected function generateGrid($tiles, $columns)
      {
          [$distribution, $grid] = Distributor::distribute(
              $tiles,
              $columns,
              $this->settings['tallRate'],
              $this->settings['wideRate']
          );
          RandomFiller::fill($grid, $distribution, $this->settings['maxFillRetries']);
          return $grid;
      }
code_tokens: protected function generateGrid ( $ tiles , $ columns ) { [ $ distribution , $ grid ] = Distributor :: distribute ( $ tiles , $ columns , $ this -> settings [ 'tallRate' ] , $ this -> settings [ 'wideRate' ] ) ; RandomFiller :: fill ( $ grid , $ distribution , $ this -> settings [ 'maxFillRetries' ] ) ; return $ grid ; }
docstring: Generate a Grid that contains a given number of columns.
  
  @param int $tiles Total number of tiles.
  @param int $columns Number of columns of the grid.
  @return Grid A new grid filled with Cell values.
docstring_tokens: Generate a Grid that contains a given number of columns .