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;
    }
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;
    }
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 ; }
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.
Generate a Grid that contains a given number of columns .