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

randomPolyomino -- Random polyomino with random size up to a given bound

Description

Produces a random polyomino whose number of cells is randomly chosen between $1$ and the given bound $m$.

i1 : P = randomPolyomino 10

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

o1 : CollectionOfCells

See also

Ways to use randomPolyomino:

  • randomPolyomino(ZZ)

For the programmer

The object randomPolyomino is a method function with options.


The source of this document is in PolyominoIdeals.m2:1655:0.