Macaulay2 » Documentation
Packages » PolyominoIdeals » randomPolyominoWithFixedRank
next | previous | forward | backward | up | index | toc

# randomPolyominoWithFixedRank -- Random polyomino with fixed rank

- Usage:
    `randomPolyominoWithFixedRank n`
- Inputs:
  - n, an integer specifying the number of cells
- Outputs:
  - a random polyomino composed of $n$ connected cells

## Description

Generates a random connected polyomino consisting of $n$ cells.

    i1 : P = randomPolyominoWithFixedRank 6

    o1 = {{1, 1}, {0, 1}, {2, 2}, {-1, 2}, {-2, 3}, {-2, 4}}

    o1 : CollectionOfCells

## See also

- cellCollection -- Create a collection of cells
- randomPolyomino -- Random polyomino with random size up to a given bound

## Ways to use randomPolyominoWithFixedRank:

- `randomPolyominoWithFixedRank(ZZ)`

## For the programmer

The object randomPolyominoWithFixedRank is a method function with options.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/PolyominoIdeals.m2:1634:0.