We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
gives a pseudorandom simple polygon with n vertex points.
RandomPolygon[spec]
gives a pseudorandom polygon with the specified specification spec.
RandomPolygon[dspec,…]
gives a pseudorandom polygon in dimension d.
Details and OptionsGenerate a list of random convex polygons:
Generate a list of polygons in dimension 3:
Scope (15) Basic Uses (6)Generate a random polygon with a random number of vertex points:
Generate a random polygon with a given number of vertex points:
Generate a random polygon with a given number of vertex points in :
Generate multiple lists of polygons:
Generate a random polygon with a specified property:
Convex Polygons (2)Generate a random convex polygon:
Convex Hull Polygons (3)Generate a random convex hull polygon:
Random convex hull polygon in :
Generate a random convex hull polygon from the Dirichlet distribution:
Simple Polygons (2)Generate a random simple polygon:
Star‐Shaped Polygons (2)Generate a random star-shaped polygon:
Random star-shaped polygon in :
Options (8) DataRange (1)DataRange allows you to specify the range of vertex points to generate:
WorkingPrecision (1)Generate a random polygon using machine arithmetic:
VertexColors (2)Generate a random polygon with vertex colors:
Specify vertex colors for 3D random polygons:
VertexNormals (1)Generate a random polygon; compute normal vectors using the cross product of edge vectors:
Using different normals will affect shading:
VertexTextureCoordinates (3)Texture mapping with 2D random polygons:
Repeat a texture by using non-unified texture coordinate values:
Texture mapping is preceded by VertexColors:
Applications (5) Basic Uses (2)Random polygons with 10 vertex points:
Generate random polygons for testing algorithms and verification of time complexity:
Time complexity for algorithms for convex polygons:
Geometry Probability (2)Simulate random convex polygons and compute areas:
Compare its histogram to the PDF:
Average area of polygons with 10 vertices over a unit square:
As goes to , the limit shape for random convex polygons is :
Other Applications (1)Polygon classification using machine learning. Train a classifier function on polygon examples:
Use the classifier function to classify new polygons:
Properties & Relations (5) Neat Examples (1) Wolfram Research (2019), RandomPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomPolygon.html. TextWolfram Research (2019), RandomPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomPolygon.html.
CMSWolfram Language. 2019. "RandomPolygon." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RandomPolygon.html.
APAWolfram Language. (2019). RandomPolygon. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RandomPolygon.html
BibTeX@misc{reference.wolfram_2025_randompolygon, author="Wolfram Research", title="{RandomPolygon}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/RandomPolygon.html}", note=[Accessed: 11-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_randompolygon, organization={Wolfram Research}, title={RandomPolygon}, year={2019}, url={https://reference.wolfram.com/language/ref/RandomPolygon.html}, note=[Accessed: 11-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4