WLJS LogoWLJS Notebook

RandomPolygon

RandomPolygon[n] gives a pseudorandom simple polygon with n vertex points.

  • RandomPolygon[spec] gives a pseudorandom polygon with the specified specification spec.
  • RandomPolygon[spec, k] gives a list of k pseudorandom polygons.
  • RandomPolygon[d -> spec, …] gives a pseudorandom polygon in dimension d.

Examples

RandomPolygon[5]

Please visit the official Wolfram Language Reference for more details.

On this page