Random Geometry Generator
Create reproducible random geometric primitives: point clouds, triangles, polygons with configurable vertices, circles with center and radius, rectangles with dimensions, and normalized quaternions. Useful for game development, graphics, and geometry testing.
Also known as: geometric shapes · point sets · polygons · coordinates
seeded
Output
About this tool, tips & examples
What it does
The Random Geometry Generator produces random geometric primitives: point clouds, triangles, polygons with 3–12 vertices, circles with center and radius, rectangles with dimensions, and normalized quaternions for 3D rotations. All coordinates fall within your chosen range, and seeded output regenerates identically.
Common use cases
- Collision testing — random triangles, circles, and rectangles are the classic inputs for intersection and containment tests.
- Graphics development — point clouds and polygons for exercising rendering, triangulation, and hull algorithms.
- Game development — random quaternions give unbiased 3D rotations for spawning and orientation.
- Geometry algorithm validation — property-based checks (does the area formula survive a thousand random polygons?) need exactly this input.
Settings
- Shape — points, triangles, polygons, circles, rectangles, or quaternions.
- Vertices — 3 to 12 for polygon shapes.
- Range — the coordinate bounds shapes are generated within.
- How many — 1 to 1,000 shapes, exportable as text, CSV, or JSON.
- Seed — identical seed + settings = identical geometry — pin the seed when a shape exposes a bug.
Privacy note
Shapes are computed locally in your browser and never uploaded — pure synthetic mathematics.
FAQ
Are the quaternions valid rotations? Yes — they’re normalized (unit length), so they represent proper 3D rotations without scaling artifacts.
Why random shapes instead of hand-picked ones? Hand-picked test shapes encode your assumptions — axis-aligned, convex, nicely proportioned. Random geometry finds the degenerate cases (slivers, near-collinear points) where geometric code actually fails.
Need geographic shapes instead? Geo Features generates GeoJSON polygons and bounding boxes on real-world coordinates; Voronoi Points covers spatial partition patterns.